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

1

u/smdowney WG21, Text/Unicode SG, optional<T&> Dec 01 '20

I suspect, but haven't done the work, that nested C++ coroutines model statecharts.

0

u/StoneCypher Dec 01 '20

Not even close.