|
|
|
|
|
by bvrmn
251 days ago
|
|
The issue with state you should handle it. Compare for example some iterator implementation in Java and Python. Latter needs only one method with coroutine and no state to store on object level. > the state is already enough to explain a state machine. I did not talk about explaining state machines but implementing state machines as coroutines. Progression: give an idea of state machines, show how hard is to handle state, present coroutines as way to handle states. |
|