News for hackers. Stuff that matters.
Re:Inheritance Is Terrible by danidiaz on Saturday March 19, 2016 @05:10PM (#11320463)
An interesting aspect of Haskell is that it tries really really hard to avoid subtyping, relying instead on other mechanisms. This talk by Simon Peyton Jones touches on it from minute 40 onwards: https://imperial.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?...

"In a language with generics & constrained polymorphism, do you really need subtyping too?"

Re:Inheritance Is Terrible by marcosdumay on Saturday March 19, 2016 @05:32PM (#11320563)
Haskell has interface based generics, just like the article wants people to write. It just calls its interfaces by classes, and has a more powerful implementation than Java, that deals with default code and makes incompatibilities impossible.

Haskell even allows interface inheritance, just like Java, but calls it by... well, no name that I'm aware of, but it's there.