Hello, you have come here looking for the meaning of the word
duck typing. In DICTIOUS you will not only get to know all the dictionary meanings for the word
duck typing, but we will also tell you about its etymology, its characteristics and you will know how to say
duck typing in singular and plural. Everything you need to know about the word
duck typing you have here. The definition of the word
duck typing will help you to be more precise and correct when speaking or writing your texts. Knowing the definition of
duck typing, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
English
Etymology
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.”
Noun
duck typing (uncountable)
- (programming) 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.
2006, Neal Ford, Scott Davis, No Fluff, Just Stuff Anthology: The 2006 Edition, page 16:Ruby proponents call this duck typing:: if the variable responds to a message that asks it to quack like a duck and it quacks, it must be a duck. This is clearly different from the way that Java (and other strongly typed languages) work, […]
Hypernyms
Translations
See also
Further reading