r/functionalprogramming • • Sep 25 '23

Question Why OOP sucks?

4 Upvotes

81 comments sorted by

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.