News for hackers. Stuff that matters.
Re:Classes are a way of writing higher order functions by dragonwriter on Wednesday September 09, 2020 @03:10PM (#24424641)
> Functional has been around for 30+ years.

60+, and OOP has been around for 50+.

> OOP won against functional because OOP is easier to understand and leads to more maintainable code.

OOP didn't “win”, it had a period of intense popularity starting in the late 80s and starting to fade around the mid-00s. And that was largely path dependence and building on C; had someone put the kind of effort into C-with-lambdas instead of Stroustroup's C-with-objects, we might have had a couple decades where the most popular languages were all C-descended impure functional programming languages rather than C-descended class-based OOP languages.

There are no comments on this comment yet.