• With Groovy and its support for duck-typing, there is no casting involved.

    有了Groovy及其duck-typing支持,将不再需要强制转换。

    youdao

  • This gives the expressiveness of duck-typing with the safety of static type-checking.

    给予了动态类型表达能力又保留了静态类型检查的安全

    youdao

  • The duck-typing and property semantics in Groovy help remove noise by reducing the number of source lines of code; however, you can also remove noise by adding transparency.

    Groovy中的duck - typing属性语义通过减少代码来减少冗余;然而可以通过增加透明度来减少冗余。

    youdao

  • Affectionately known as "duck typing" (i.e., if it waddles like a duck and quacks like one, then it must be a duck!), polymorphism in Ruby is just a matter of matching method names.

    Ruby中的多态性被亲切地称为duck typing”(意思如果走起路来鸭子,叫起来也像鸭子那么一定是鸭子!),这种多态性只是对方法名进行匹配的问题

    youdao

  • It even honors duck typing, with static guarantees.

    甚至还使用了鸭子类型,保证静态安全。

    youdao

  • Language soft interfaces and duck typing.

    语言接口鸭子类型

    youdao

  • In the context of programming languages, duck typing means that if an object responds to the methods of a type, then for all practical purposes, you can treat it like that type.

    编程语言上下文中duck typing意味着如果一个对象对于某种类型方法反应那么事实上可以看作那种类型。

    youdao

  • Ruby USES what is affectionately referred to as "duck typing" - if it accepts a "quack" message, it must be a duck.

    Ruby使用所谓的“duck typing”——也就是说,如果接受鸭叫消息,那么它一定是鸭子。

    youdao

  • Perhaps it's a case for duck typing, the principle that it doesn't really matter what an object is, in terms of class and module, but only what it does.

    可能就是duck typing一个例子duck typing代表原则无论对象属于什么或者模块,关系都不大,关键在于些什么。

    youdao

  • The caveats of duck typing in a static language.

    静态语言使用duck类型的限制。

    youdao

  • The concept behind duck typing, also known as late binding, is pretty simple; if an object responds to all the methods a function is expected to call, that object can be passed to the function.

    Duck typing背后概念非常简单,就是所谓绑定如果对象具有某个函数希望调用所有方法,就可以这个对象传递函数。

    youdao

  • Of particular interest is the way it handles late binding, more commonly known today as "duck typing".

    其最能引起大家兴趣的地方在于处理绑定(late binding)”的方式现在我们通常duck typing”。

    youdao

  • Programming languages with features like duck typing can improve flexibility and reduce repetition by forcing fewer type definitions and reducing code needed purely to support a compiler.

    具备诸如duck typing这类特性编程语言通过使用更少类型定义减少纯粹为了支持编译器所需要代码数,能够提高灵活性减少重复

    youdao

  • This is seen in mismatched language features such as the ability to consume objects via late binding, A.K.A. duck typing, but no ability to define them.

    例如能够通过绑定(即所谓的duck typing)使用对象但却没有能力确定他们——这样的语言特性普遍认为和脚本编程是不相配的。

    youdao

  • Structural Subtyping (duck typing) using type inference and anonymous types.

    使用类型引用匿名类型结构类型转化(动态类型)。

    youdao

  • Structural Subtyping (duck typing) using type inference and anonymous types.

    使用类型引用匿名类型结构类型转化(动态类型)。

    youdao

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

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

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