3 ms·
I think the same about FP and some of the monad hoops they jump through. Half of the uses of monads are not because they're so optimal for the problem at hand.
by AnimalMuppet 6y ago
I think the same about FP and some of the monad hoops they jump through. Half of the uses of monads are not because they're so optimal for the problem at hand. Rather, it's because they're the only way of escape from the straight-jacket of functional purity, no side effects, and no state.
And, to parallel thecupisblue's comment, there really are reasons that the FP people don't want side effects. There are reasons they don't want state - real, valid reasons. In going as far as they can away from state and side effects, though, they've painted themselves into a corner where monad gymnastics are the only way of escape. I am not convinced that in all cases the rigorous FP cure is better than the disease.
- techsin101 6y agoFP zealots do go overboard and never want to modify a variable, they'd rather use x^10 space for N variables and loop 10 times to get to the final result but that's not what I'm condoning.