2 ms·
The 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. (Th
by eru 1y ago
The 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.)