by marvy · 11y ago · 0 comments
So, contracts that specify what functions accept and produce by class membership provide less assurance than they superficially appear to.
Ruby is certainly a language suitable for the duck typing technique. The term was originally used in reference to Python, and both languages have reasonably equivalent reflection abilities.
Compare that to duck-typing in Go where it was a very deliberate design decision.