| ▲ | Sharlin 2 hours ago | |
Did you read the article? As the author says, it becomes a state machine hell very quickly beyond very simple examples. | ||
| ▲ | kccqzy 2 hours ago | parent [-] | |
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. | ||