3 ms·
The legendary "Coroutines in C" article! Thanks for the reference—I learned a lot from his work. His use of macros to hide the switch statement is basically t
by lixiasky 8mo ago
The legendary "Coroutines in C" article!
Thanks for the reference—I learned a lot from his work.
His use of macros to hide the switch statement is basically the spiritual ancestor of co_await. It is wild to think that C++20 essentially standardized that exact pattern, just moving the "state machine generation" from the preprocessor hacks to the compiler itself.