Re:The Brittleness Of Type Hierarchies
by stephenjudkins on Tuesday May 08, 2012 @04:24PM
(#3945621)
I'm surprised he didn't mention typeclasses as a solution to this general problem. In many cases it's an unambiguously better solution than inheritance. A particular strength is that typeclasses can be easily defined or overridden at call-sites as easily as at where data types are defined. OOP forces an uncomfortably close complecting of data and operations on that data, leading to the difficulties enumerated in this blog post.
[ Parent
| on HN ]
There are no comments on this comment yet.