Coroutines make robot code easy
Yes. The callback is not a natural construct (i.e. it does not map well to our intuitive understanding of X is doing something while Y is doing something else).<p>I&#x27;m annoyed when coroutines are reserved for use only in high performance, c10k-type of situations. For example, the KJ library&#x27;s doc says:<p>&quot;Because of this, fibers should not be used just to make code look nice (C++20&#x27;s co_await, described below, is a better way to do that).&quot;<p>With this &quot;stackless or nothing&quot; attitude we do not have good C++ coroutine libraries outside C++20&#x27;s.<p>For me the purpose IS to make the code look nice and I do not care if the coros are stackfull and consume more stack memory. At the end of the day, for my application, I saved more in programmer&#x27;s time and bugs than I lost in RAM (and I&#x27;m on an embedded board with only 64MB)