News for hackers. Stuff that matters.
Re:OOP Is Dead, Long Live OOP by hota_mazi on Friday October 19, 2018 @12:36PM (#18257910)
Yup, that's how it works. And why inheritance and polymorphism is so popular: it's powerful, easy to explain, and captures elegantly a lot of problems we need to model.

In contrast, non class based languages such as Haskell struggle to model problems that are trivial in OOP, such as how to reuse 90% of existing functionality but override 10% with more specialized behavior. Good luck solving that problem elegantly with type classes.

There are no comments on this comment yet.