duck typing
短语释义与例句
n.
-
1.
A style of dynamic typing in which an object's current set of methods and properties determines the valid semantics, rather than its inheritance from a particular class or implementation of a specific interface.
不可数 计算机 工程 数学
词源
From the so-called duck test: “if it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck.”
来源:wiktionary