News for hackers. Stuff that matters.
Re:Looking at Unity made me understand the point of C++ coro... by mgaunard on Wednesday March 25, 2026 @09:00AM (#47516779)
You can embed the state in your lambda context, it really isn't as difficult as what people claim.

The author just chose to write it as a state machine, but you don't have to. Write it in whatever style helps you reach correctness.

Re:Looking at Unity made me understand the point of C++ coro... by Sharlin on Wednesday March 25, 2026 @09:13AM (#47516922)
You still need the state and the dispatcher, even if the former is a little more hidden in the implicit closure type.