News for hackers. Stuff that matters.
Re:Looking at Unity made me understand the point of C++ coro... by krackers on Thursday March 26, 2026 @01:56AM (#47527047)
Isn't this basically what javascript went through with Promise chaining "callback hell" that was cleaned up with async/await (and esbuild can still desugar the latter down to the former)
Re:Looking at Unity made me understand the point of C++ coro... by mgaunard on Thursday March 26, 2026 @03:03PM (#47534335)
This is literally what coroutines are, syntactic sugar to generate nested lambdas.

Except in C++ this removes a fair amount of control given how low-level it is.