摘要
网络应用程序中为了保持程序的交互性,服务器端的控制程序如CGI(command gateway interface)程序需要在不同的脚本程序之间切换,这样不可避免的会造成控制信息的丢失。为了避免这些问题,介绍了将函数式程序设计语言的一些方法,如Continuation、CPS(continuation passing style)等,并将它们应用到网络程序设计中,不仅简化了设计过程,也提高了程序的安全性,并可以在更一般的语言中实现。
In order to keep the interactive nature of web application, server-side programs, such as CGI, must switch between multiple scripts, which consequentially leads to the losing of control information. Some methods from functional language are implemented in web programming to remedy these problems. They can not only simplify the procedure of coding, but also improve integrity of the program. Particularly, they are also implemented as common methods in most languages.
出处
《计算机工程与设计》
CSCD
北大核心
2009年第6期1315-1320,共6页
Computer Engineering and Design