Re:Functional Programming in C++
by jerf on Friday April 27, 2012 @10:49AM
(#3899276)
Functional programming has a lot of state minimization in it, at least in the stronger forms. A function in Haskell of Int -> Int can only be affected by the input Int. A function in C of int function(int) can be affected by arbitrary state from throughout the system; it may decrement or increment depending on global variables. It may write files. It may open connections to remote servers and read stuff off the internet. It has a vastly huger potential state space in theory and often vastly huger state spaces in practice.
I go into this more explicitly in http://www.jerf.org/iri/post/2908 .