Philosophy of coroutines
[Simon Tatham, initial version 2023-09-01, last updated 2025-03-25]
[Coroutines trilogy: C preprocessor | C++20 native | general philosophy ]
Introduction
Why I’m so enthusiastic about coroutines
The objective view: what makes them useful?
Versus explicit state machines
Versus conventional threads
The subjective view: why do I like
them so much?
“Teach the student when the student is ready”
They suit my particular idea of code clarity
Techniques for getting the most out of coroutines
When to use...
Read more at chiark.greenend.org.uk