Re:Functional Programming in C++ (2013)
by 5outh on Saturday July 25, 2015 @01:41PM
(#9948314)
Well, sort of. One of the big focuses of functional programming is _minimizing_ state; in other words, only what must be passed around should be. Sure, you'll end up having a large context that the entire program operates in, but having to pass around a context incentivizes passing around the minimal amount of context to sub-parts (functions) in the program. You don't need the whole global state? Great; only pass around a small part of it to that part of the program. You don't need the whole context all the time so you don't pass the whole thing around all the time.
[ Parent
| on HN ]
There are no comments on this comment yet.