go top

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

  • 鸭子类型:一种编程概念,主要用于动态类型语言中。它关注对象的行为,而不是对象所属的具体类型。如果一个对象能够实现某种行为,那么它就被认为具有相应的类型,而不需要显式地声明类型。

网络释义英英释义

  鸭子类型

... DRY 原则,不自我重复原则(Don't Repeat Yourself),“不要重复你自己3” duck-typing鸭子类型 duck test,鸭子测试 ...

基于4个网页-相关网页

短语

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

Donald 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
- 来自原声例句
小调查
请问您想要如何调整此模块?

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

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