2 ms·
> Isn't this just duck typing? Yes > Don't other languages renowned for their type systems do this? No. In languages with good type systems, nominal types ar
by lmm 7y ago
> Isn't this just duck typing?
Yes
> Don't other languages renowned for their type systems do this?
No. In languages with good type systems, nominal types are very valuable. E.g. "known-immutable list" and "read-only view onto a mutable list" are very different types, but offer the same set of methods.