如果你没有想到过用词法闭包(lexical closures)(在之前那个例子中用到过),可以暂时放心去用,因为Lisp程序员一直都这么用。在Common Lisp的程序里很难找到不使用闭包的。
基于6个网页-相关网页
Or how about Perl 4? Between Perl 4 and Perl 5, lexical closures got added to the language.
或者Perl4又如何呢? Perl4到Perl5之间,词法闭包被加进来了。
In practice their usefulness is greatly enhanced by other Lisp features like lexical closures and rest parameters.
实践中,宏的作用通常由其它一些Lisp特性比如词法闭包以及rest参数大大加强。
By understanding closures and lexical scope, you begin to perceive opportunities for new development patterns and idioms.
通过理解closures和文本化范围,您可开始感受到出现新的开发模式和惯用语法的机会。
应用推荐