Re:Asynchronous IO in Rust
by dbaupp on Thursday September 17, 2015 @03:38AM
(#10232087)
Enums. This HN submission is an example.
[ Parent
| on HN ]
State machines aren't a general solution — you have to write a state machine by hand for every application.
Stackless coroutines are — the compiler (or a clever library) transforms your ordinary function into a state machine.
Yes, I know. That's exactly what I mean by syntactic sugar: it is an automated way to write something that could already be written, but is annoying to do by hand.