Re:Looking at Unity made me understand the point of C++ coro...
by Sharlin on Wednesday March 25, 2026 @09:12AM
(#47516909)
Did you read the article? As the author says, it becomes a state machine hell very quickly beyond very simple examples.
[ Parent
| on HN ]
Re:Looking at Unity made me understand the point of C++ coro...
by kccqzy on Wednesday March 25, 2026 @09:32AM
(#47517131)
I just don’t agree that it always becomes a state machine hell. I even did this in C++03 code before lambdas. And honestly, because it was easy to write careless spaghetti code, it required a lot more upfront thought into code organization than just creating lambdas willy-nilly. The resulting code is verbose, but then again C++ itself is a fairly verbose language.