用于描述函数作用域和函数内嵌套的作用域的术语。
Term used to describe function scope and the scopes nested inside a function.
一个闭包封闭了这些引用,所以函数调用可以安全的引用这些变量,即使它们已经超出了函数的作用域。
A closure "closes around" these references, so the function invocation can safely refer to the variables even when the variables have gone out of scope!
定义代码块的环境的名称空间和使用它的函数之间的作用域本质上是一个作用域:该作用域是闭合的。
The scope between the name space of the environment that defines the code block and the function that USES it are essentially one scope: the scope is closed.
应用推荐