字典 成语 英汉词典
 
全站
导航
字典 成语 英汉词典
duck typing

单词 duck typing

音标 英式发音 美式发音

释义

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

时间: 2026-10-02 00:31:17

duck typing 双语例句

全部


1·Language soft interfaces and duck typing.

语言软接口与鸭子类型。

2·It even honors duck typing, with static guarantees.

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

3·The caveats of duck typing in a static language.

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

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

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

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

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

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

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

7·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所代表的原则是,无论对象属于什么类或者模块,关系都不大,关键在于它做些什么。

8·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)来使用对象,但却没有能力确定他们——这样的语言特性被普遍认为是和脚本编程是不相配的。

9·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意味着如果一个对象对于某种类型的方法有反应,那么事实上就可以把它看作那种类型。

10·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”(意思是,如果它走起路来像鸭子,叫起来也像鸭子,那么它一定是鸭子!),这种多态性只是对方法名进行匹配的问题。

ramp response是什么意思
ramp response是什么意思
汉词网为您提供ramp response是什么意思,ramp response的用法,ramp response的词性,ramp response的词根,ramp response短语搭配,ramp response真题例句等功能,学习单词超轻松。
查看完整内容
[11-26]
executive recruiter是什么意思
executive recruiter是什么意思
汉词网为您提供executive recruiter是什么意思,executive recruiter的用法,executive recruiter的词性,executive recruiter的词根,executive recruiter短语搭配,executive recruiter真题例句等功能,学习单词超轻松。
查看完整内容
[11-26]
political theory是什么意思
political theory是什么意思
汉词网为您提供political theory是什么意思,political theory的用法,political theory的词性,political theory的词根,political theory短语搭配,political theory真题例句等功能,学习单词超轻松。
查看完整内容
[11-26]
clock cycle是什么意思
clock cycle是什么意思
汉词网为您提供clock cycle是什么意思,clock cycle的用法,clock cycle的词性,clock cycle的词根,clock cycle短语搭配,clock cycle真题例句等功能,学习单词超轻松。
查看完整内容
[11-26]
incrustation是什么意思
incrustation是什么意思
汉词网为您提供incrustation是什么意思,incrustation的用法,incrustation的词性,incrustation的词根,incrustation短语搭配,incrustation真题例句等功能,学习单词超轻松。
查看完整内容
[11-26]
stage whisper是什么意思
stage whisper是什么意思
汉词网为您提供stage whisper是什么意思,stage whisper的用法,stage whisper的词性,stage whisper的词根,stage whisper短语搭配,stage whisper真题例句等功能,学习单词超轻松。
查看完整内容
[11-26]
lobster Newburg是什么意思
lobster Newburg是什么意思
汉词网为您提供lobster Newburg是什么意思,lobster Newburg的用法,lobster Newburg的词性,lobster Newburg的词根,lobster Newburg短语搭配,lobster Newburg真题例句等功能,学习单词超轻松。
查看完整内容
[11-26]
Rape yellow是什么意思
Rape yellow是什么意思
汉词网为您提供Rape yellow是什么意思,Rape yellow的用法,Rape yellow的词性,Rape yellow的词根,Rape yellow短语搭配,Rape yellow真题例句等功能,学习单词超轻松。
查看完整内容
[11-26]
  • Copyright © 2009-2024 m.mytentv.com 汉词 . All Rights Reserved. 渝ICP备2024018624号-1
  • 汉词,中小学生必上的网站,部分资料来源于网友提供,如有侵权,请与我们联系删除!邮箱:xhy_gz@163.com