News for hackers. Stuff that matters.
Re:Why OO Sucks by Joe Armstrong (2000) by jasonhansel on Sunday April 21, 2019 @08:05PM (#19715355)
Worth noting that most of these criticisms also apply to existential types, which are fairly common in functional languages (e.g. Haskell).
Re:Why OO Sucks by Joe Armstrong (2000) by l_dopa on Sunday April 21, 2019 @09:02PM (#19715600)
That's not entirely accurate. Abstract data types (e.g. ML modules) can also be modeled as existential types and don't have the same problems.

I think it's the particular combination of only having nominal typing, only allowing the oo-flavor of data abstraction, and encouraging programming with state and using inheritance for code reuse that leads to the object-spaghetti nonsense in heavily-oo Java/C++ codebases.

Re:Why OO Sucks by Joe Armstrong (2000) by jasonhansel on Sunday April 21, 2019 @09:20PM (#19715669)
I just mean that (at least in Haskell) existential types provide information hiding & combine functions with data. In fact, they're implemented with dynamic dispatch, just as with OOP.

The problem is not that OO languages have these features; the problem is that they lack other features common to functional languages.

Re:Why OO Sucks by Joe Armstrong (2000) by kjeetgill on Sunday April 21, 2019 @08:32PM (#19715469)
Unfamiliar with Haskell. What are existential types.