6 ms·
I wouldn't say that object oriented is completely opposed to functional, though.
by ealhad 8y ago
I wouldn't say that object oriented is completely opposed to functional, though.
- YorkshireSeason 8y agoIndeed, Scala's main innovation was to demonstrate that functional programming is a well-behaved edge-case of OO programming. (Before Scala, research was mostly trying to show the opposite: how OO is an edge case of FP, but that didn't work quite so well.)
- Annatar 8y agoI would. That's the whole point: in object-oriented programming, everything revolves around the state machine, whereas in functional programming, every function is idempotent and the state machine irrelevant. Lisp is a good example of that.