3 ms·
It seems to be a common trend to claim that functional programming solves the problem of state. It can solve the problem of accidental state in the solution sp
by _pmf_ 11y ago
It seems to be a common trend to claim that functional programming solves the problem of state.
It can solve the problem of accidental state in the solution space, but it obviously cannot change the fact that a specific problem space has stateful characteristics.
Don't introduce accidental state, yes. But embrace the problem's states as first class elements of your solution and don't try to hide them.
- the_af 11y agoFP is all about embracing state as a first class element and reducing accidental state. I hope nobody claims otherwise :) The confusion is that people sometimes say "state" when they mean "mutable shared state".