DEV Community

Discussion on: Function vs Object

Collapse
codemouse92 profile image
Jason C. McDonald • Edited on

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.