5 ms·
I've learned to think of objects as not exactly monadic, but monad-like in their pattern of use: whenever there's a bit of state that I need to track and isolat
by bitwize 9y ago
I've learned to think of objects as not exactly monadic, but monad-like in their pattern of use: whenever there's a bit of state that I need to track and isolate from all other state in the system, wrap that in a class. The allowable state transitions then become methods.
- yxhuvud 9y agoRight, and most of the times, if state have different life times, then it should be in different classes.
- deleted 9y ago[deleted]