by RootDynasty · 11y ago · 0 comments
"If a tree falls in the woods, does it make a sound? If a pure function mutates some local data in order to produce an immutable return value, is that ok?"
Function purity enforces that mutations are localized to small areas of the code, while maintaining composition.
Most programmers of 'traditional' (imperative, oo) programming languages would agree.