• The partial application of a closure is another closure object in which some values have been fixed.

    部分应用程序另一个Closure对象这个对象中有些已经修正

    youdao

  • In this case the returned function object is a closure which encapsulates some logging code and the data needed to call the original function.

    这种情况返回函数对象就是一个闭包其中封装了一些日志代码最初函数调用需要数据

    youdao

  • When a closure "captures" a variable it "lifts" the variable out of its local scope and effectively moves it into an anonymous object.

    闭包捕获”一个变量时,就会将这个变量提取本地范围匿名对象里。

    youdao

  • We also grab the color and name of the dog, passed in the constructor and stored in the object, within the closure.

    我们闭包获取颜色名字传递构造函数存储到对象中。

    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

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

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

    youdao

  • To create child nodes, I create a closure and declare a new object dubbed name, which takes parameters in the form of a map.

    创建节点创建闭包声明一个名叫name对象接收map形式参数

    youdao

  • The closure captures the information about the actual Web service method stub to be invoked (the function object called obj) as well as the stream for the log output.

    闭包捕获真正调用Web服务方法存根(称为obj函数对象)以及作为日志输出

    youdao

  • The element is a sibling of, so I jump out of the closure, declare a friends object and, of course, attach a closure that contains a collection of friend elements, as shown in Listing 2.

    元素是的兄弟元素,于是跳出这个包,声明friends对象当然还附加了一个集合了多个friend元素闭包,如清单2所

    youdao

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

    闭包可以看成是在function scope中的一个临时对象

    youdao

  • Calling the object reference shown in Listing 9 as a variable automatically calls the __invoke magic method, making the class itself act as a closure.

    清单9中所对象引用调用变量将自动调用__invoke魔术方法使本身用作闭包

    youdao

  • Consider the example in Listing 1, where a closure is defined in a class, and then invoked after the object variable goes out of scope.

    考虑清单1中的示例其中closure定义并且对象超出范围之外进行调用

    youdao

  • Resolution and closure, then, is mature object choice and in a certain sense there, too, it's a push forward, but we don't quite know toward what.

    决心结果才是,成熟选择带着生命向前进我们知道会去哪。

    youdao

  • Notice how the mail object defined in the catch block takes a closure that defines the from, to, and message attributes.

    注意catch定义mail对象如何接受定义fromtomessage属性包。

    youdao

  • Here's another way to look at it: If an object is data with methods that operate on that data, then a closure is a function with data bound to that function.

    另一个角度来看如果object带有运行方法数据那么closure绑定了数据的函数

    youdao

  • When you use a closure, remember that the call object of the enclosing function, including all function arguments and local variables, will last as long as the closure does.

    使用包时,记得包含函数调用对象包括所有的函数参数本地变量有跟闭包一样存活时期。

    youdao

  • But it has a performance impact since closure is created each time your object is created.

    一个性能影响由于关闭每次创建对象

    youdao

  • Lastly, the closure structure more closely follows the Law of Demeter since your object would, theoretically, be "reaching through" via the prototype chain.

    最后闭合结构接近于得墨忒耳对象从理论上讲通过通过原型

    youdao

  • Lastly, the closure structure more closely follows the Law of Demeter since your object would, theoretically, be "reaching through" via the prototype chain.

    最后闭合结构接近于得墨忒耳对象从理论上讲通过通过原型

    youdao

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

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

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