Conversation

I feel like pure functional programming is the logical conclusion of test-driven development. Programs with a large side-effect-free core are much easier to test in my experience
14
328
Replying to
Key part to note is that OOP is basically isomorphic to the actor model, and actors do not affect global state. They only have their own private state. I.e. there is no "impurity" because they can only send and receive messages, they can't go and mutate some global shared state
Replying to
We might differ on "pure" and "side effect". Check SICP for a great mechanistic explanation. A functional style only has inputs and outputs. In an OOP style you have inputs, outputs and environment. Message passing encapsulates, but it still mutates an internal environment.
2
2
Show replies