Hacker News new | ask | show | jobs
by NtrllyIntrstd 1780 days ago
Typeclasses/traits are not duck typing. A type statically needs to implement an abstract data type (with its methods and invariants). This is more of a categorization/composition effort.