MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/functionalprogramming/comments/16rmdo7/why_oop_sucks/k2oy6jm/?context=3
r/functionalprogramming • u/Training-Marsupial-5 • Sep 25 '23
81 comments sorted by
View all comments
Show parent comment
1
But that kind of gets rid of the point of OOP. It's a way of managing state. If you replace the imperative parts of OOP with FP then no method would mutate the state of the object, and it the method would just be a function.
View all comments
Show parent comment
1
u/Inconstant_Moo Sep 29 '23
But that kind of gets rid of the point of OOP. It's a way of managing state. If you replace the imperative parts of OOP with FP then no method would mutate the state of the object, and it the method would just be a function.