• 最大差别使用对象任何属性因为定义静态类

    The big difference is that we don't use any properties of the object within the closure, since it is defined as static.

    youdao

  • 进行一些灵敏操作例如对象导航特别是使用包的时候,Groovy偶尔会遇到歧义性问题语法受限的问题。

    When it came to clever operations such as object navigation, and particularly closures, Groovy suffered from occasional ambiguities and an arguably limiting syntax.

    youdao

  • 可以看成是functionscope中的一个临时对象

    The "closure" can be viewed as a temporary object that exists in the function scope.

    youdao

  • 对象可以好地结合使用,比如我们面向对象代码包的特殊处理

    Objects and closures get along very well, as we saw by the special handling of closures within object-oriented code.

    youdao

  • 由于无需对象导入包中,因此可以节省大量内存尤其是拥有许多需要功能包时。

    By not having to import the object into the closure, we can save quite a bit of memory, especially if we have many closures that don't need this feature.

    youdao

  • 定义基本上对象外部定义的相同

    Closures defined within a class are fundamentally the same as those defined outside an object.

    youdao

  • 包指“包裹”函数本地变量使函数可见访问对象

    "Closes" over the local variables of a function making them visible and accessible outside the function.

    youdao

  • 包指“包裹”函数本地变量使函数可见访问对象

    "Closes" over the local variables of a function making them visible and accessible outside the function.

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定