Re:Why isn't Haskell popular in industry?
by loup-vaillant on Monday August 02, 2010 @05:14AM
(#1567221)
Because two features are different doesn't mean they don't solve the same problem. Here, most of the time, class polymorphism is used to solve problem best solved with parametric polymorphism (sometimes called genericness).
We don't need class polymorphism with inheritance, here. We can do simpler:
Or even simpler:
(And don't tell me that passing function as parameters is weird, or complicated. Functions are typically way simpler than "Objects".)
[ Parent
| on HN ]
There are no comments on this comment yet.