Comment

Comment by galaxyLogic

So mutable state is not bad, as long as it is "encapsulated"?

I thought (from what I've read so far) that "no mutable state" is the definition of "pure FP".

So should the definition of pure FP be "No un-encapsulated mutable state"? Instead state must always be "encapsulated". Where can I read more on this? Thanks

parent galaxyLogic 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton