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