go top

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

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

网络释义英英释义

  鸭子类型

... 在程序设计中,鸭子类型(duck typing)是动态类型的一种风格。在这种风格中,一个对象有效的语义,不是由继承自特定的类或实现特定的接口,而是由当前方法和属性的集合...

基于5490个网页-相关网页

  鸭子型态

...于duck变数实际上没有规范型态,所以没办法说S是T的次型态,或说T是S的次型态,因而动态语言界称duck具有鸭子型态(Duck typing)的行为外观。

基于16个网页-相关网页

短语

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

双语例句

  • Language soft interfaces and duck typing.

    语言软接口与鸭子类型。

    youdao

  • It even honors duck typing, with static guarantees.

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

    youdao

  • The caveats of duck typing in a static language.

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

    youdao

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

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

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