News for hackers. Stuff that matters.
Re:A Year of Functional Programming by pjc50 on Monday June 09, 2014 @10:29AM (#7868611)
FP doesn't just avoid global variables, it avoids local variables a lot of the time: you compute things from the function's arguments directly. f(a,b,c) always returns the same thing for the same values of a, b, and c and does not modify them.

FP hides state behind the concept of monads. This tends to make state-heavy systems harder. Often small embedded systems follow the "state machine" design pattern.

There are no comments on this comment yet.