|
|
|
|
|
by silentbicycle
5731 days ago
|
|
You don't need coroutines to do this - you can use tail calls, if the language provides tail-call optimization. (Python doesn't, but Lua does.) I might post a code sample translating your FSM example later, but I need to go run errands. |
|