3 ms·
If state is immutable, then it's constant data, not state.
by BubRoss 7y ago
If state is immutable, then it's constant data, not state.
- Sharlin 7y agoAu contraire! Languages with no mutation at all, like Haskell, still have a well-defined concept of state. If anything, it's more well-defined than in imperative languages based on side effects. I refer you to Rich Hickey's "Values and Change: Clojure’s approach to Identity and State" [1]. [1] https://clojure.org/about/state https://clojure.org/about/state
- BubRoss 7y agoThose are both just hiding mutation and copying.