loading...

re: Function vs Object VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Closures aren't pure FP. Lambda calculus has functions with free variables. Here's the Haskell definition of a closure: wiki.haskell.org/Closure
 

Basically, from what I've understood, a closure is still functional, but according to some purists, it's not "pure functional" because it has state.

Not that I really prioritize "purity" in terms of functional programming. Avoiding state is good for the most part, but at some point it becomes relatively impractical. Common sense required.

Code of Conduct Report abuse