4 ms·
Other ways to manage state as well: - Managing state through a monad or effect system - Managing state through coroutines / continuations - Managing state th
by isaacimagine 5y ago
Other ways to manage state as well:
- Managing state through a monad or effect system
- Managing state through coroutines / continuations
- Managing state through dynamic scoping (poor man's effect system)
- Associating implicitly mutating functions with types without having full objects (Rust)
Some of these are pretty powerful, especially effects and continuations. I think the reason we don't see more of them is because we haven't figured out a wholly ergonomic way to fit them into a language yet.