再来看看专业的解释:闭包(Closure)是词法闭包(Lexical Closure)的简称,是引用了自由变量的函数。这个被引用的自由变量将和这个函数一同存在,即使已经离开了创造它的环境也不例外。
基于194个网页-相关网页
像许多动态语言一样,这些函数在它们被定义的范围内创建了词法闭包。
These functions create a lexical closure on the scope in which they were defined like blocks in many dynamic languages.
实践中,宏的作用通常由其它一些Lisp特性比如词法闭包以及rest参数大大加强。
In practice their usefulness is greatly enhanced by other Lisp features like lexical closures and rest parameters.
应用推荐