3 ms·
Erm no. The point is I want to have the ability to make any variable dynamic, not just work with a global variable that is really a getter.
by geocar 1y ago
Erm no. The point is I want to have the ability to make any variable dynamic, not just work with a global variable that is really a getter.
- eru 1y agoThe reader monad doesn't need to be global. But yeah, by that standard, Haskell implements both dynamic scoping and mutable state via getters and setters. (Though, of course, you can go all out on these via lenses.)