> This is exactly the kind of problem that functional programming was supposed to help us avoid!
No, no it isn't. Just like you wouldn't expect 2 * 3 + 8 to suddenly return 22 when you intend it to, you shouldn't expect the order in which you apply functions to not matter.
When you pass around a changing state object to every step of your program, you are effectively doing normal imperative programming with global-ish state.
No, no it isn't. Just like you wouldn't expect 2 * 3 + 8 to suddenly return 22 when you intend it to, you shouldn't expect the order in which you apply functions to not matter.
When you pass around a changing state object to every step of your program, you are effectively doing normal imperative programming with global-ish state.