2 ms·
Au 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 imperativ
by Sharlin 7y ago
Au 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.