5 ms·
Who is writing state machines without the pattern of generators/coroutines these days?
by amelius 6y ago
Who is writing state machines without the pattern of generators/coroutines these days?
- R0b0t1 6y agoEmbedded.
- steveklabnik 6y agoYou can use async/await (and therefore generators) in Rust on embedded just fine.
- papaf 6y agoWho is writing state machines without the pattern of generators/coroutines these days? I prefer the discipline and diagrams of regular state machines. Personally, I don't like the coroutine alternative because it takes away what is good and adds complexity. Also as @R0b0t1 says, regular state machines are used in embedded: - Draw a diagram - Implement a state machine These feels much more like engineering that messing with coroutines.