News for hackers. Stuff that matters.
Re:Ask HN: Why Haskell? by AnimalMuppet on Monday March 31, 2014 @07:29PM (#7505103)
Cribbing someone else's answer to my similar question (a couple months ago):

Pure FP means no side effects. Side effects cause your state space to explode. (That is, no side effects means that the results of this function depend on its inputs only. Side effects means that the results of this function depend on its inputs, member variables of the object, file variables, global variables, the state of various things in the OS, user input read during the function, data read from the network, and maybe a few other things. It's much harder to understand such a function, get it working correctly, debug it, and prove that it correctly handles all corner cases.)

The size of the program state space is your enemy, not your friend. Control it or die. FP dramatically helps you control it.

There are no comments on this comment yet.