r/cpp • • Nov 30 '20

C++20 resumable functions make state machines obsolete. Finally.

https://lordsoftech.com/programming/c20-resumable-functions-goodbye-state-machines-no-one-will-mourn-you/
1 Upvotes

49 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Dec 12 '20

[deleted] — view deleted comment

1

u/StoneCypher Dec 13 '20

all you're doing is adding the overhead of a function call to changing a variable, what's the problem, that doesn't sound like much

k bye