闭包可被视作一个遵循特别作用域规则且可以用作参数的代码块。
Think of a closure as a code block that you can use as an argument, with special scoping rules.
它可以缓存之前编译的snippet代码,支持参数变化。
This is a large cache of previously compiled snippet code that supports parameter variations.
Squeak支持闭包——也就是,使用成块代码作为参数——像这样。
Squeak supports closures — that is, using blocks of code as parameters — like this.
应用推荐