Re:Four MLs (and a Python)
by Jtsummers on Thursday April 30, 2015 @08:54AM
(#9464720)
A nit: Dynamically typed languages do not all use duck-typing. Duck-typing is primarily concerned with the question: Does this object respond to this message/method or have this field? If the answer is yes, then we'll act as though it's whatever type we needed it to be. So duck has a quack() method and decoy_duck has a quack() method. decoy_duck is not, in fact, a duck, but it has enough of the duck behavior for what we need.
[ Parent
| on HN ]
There are no comments on this comment yet.