2 ms·
I'm happy the author wrote this blog post, it very much reflects my take on FP. And if I had to keep one sentence from it: mutable states are very useful. FP
by ur-whale 5y ago
I'm happy the author wrote this blog post, it very much reflects my take on FP.
And if I had to keep one sentence from it: mutable states are very useful.
FP addicts consider mutable states to be something to be banished at all cost, much like a generation of 70's academics tried to do away with goto's.
The fact is, there are lots of situations in the real world where using mutable state variable is the very best way to model the problem:
- easier to understand
- faster to execute
The same holds for goto's btw.
- scns 5y agoI like SPJs' explanation why Haskell is useless: https://www.youtube.com/watch?v=iSmkqocn0oQ https://www.youtube.com/watch?v=iSmkqocn0oQ Disclaimer: tongue in cheek