go top

duck typing
[dʌk ˈtaɪpɪŋ]

  • 鸭子类型(动态类型的风格之一)

网络释义英英释义

短语

duck typing 鸭子类型 ; 动态类型 ; 鸭子型态

Duck typing

  • abstract: In computer programming with object-oriented programming languages, duck typing is a style of dynamic typing in which an object's methods and properties determine the valid semantics, rather than its inheritance from a particular class or implementation of a specific interface. The name of the concept refers to the duck test, attributed to James Whitcomb Riley (see history below), which may be phrased as follows:

以上来源于: WordNet

双语例句

  • 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

  • It even honors duck typing, with static guarantees.

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

    youdao

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

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

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