3 ms·
Yes,I get the criticism against OOP. I kinda don't understand how FP solves the problem of shared mutable state... Or what alternatives there are for myraid des
by starchild3001 7y ago
Yes,I get the criticism against OOP. I kinda don't understand how FP solves the problem of shared mutable state... Or what alternatives there are for myraid design patterns.
I coded in Scala for <1 yr. Loved its syntax and code cleanliness. Not sure if I can do everything OOP does with pure FP, however.
- fpoling 7y agoFP helps to avoid the mutable part of “shared mutable state” or at least reduces it to the minimum. Another pattern is linear or affine type system like in Rust. They helps to avoid the shared part while keeping things mutable with ownership tracking.