3 ms·
I've spent some time thinking how to put it, but it indeed doesn't seem like equivalence -- perhaps more of an inclusion. Or coroutines should be limited to sta
by defanor 8y ago
I've spent some time thinking how to put it, but it indeed doesn't seem like equivalence -- perhaps more of an inclusion. Or coroutines should be limited to stateless ones, but then a similar statement could be made about regular subroutines. Though not even sure what would be a proper way to compare state machines to coroutines, maybe some context is missing.
- deleted 8y ago[deleted]
- RossBencina 8y agoIn addition to state, coroutines can also have side effects. So you kinda need effectful, stateful "finite" state machines to get started.
- raxxorrax 8y agoWhat is the difference between a side effect and a state transition?
- RossBencina 8y agoA side effect would do something external to the state machine, such as transmit something on the network, or perform disk i/o. Or it might emit an event that is received by another concurrent state machine.