When will C++ finally catch up?
When will C++ finally catch up?
Anyway, Go goroutines and Python generators are very different beasts. Because the term "coroutine" can refer to very different things, implementing any single interpretation of the term would likely leave proponents of other interpretations disappointed. Coroutine support for C++ has been in progress for several years now, and some fundamental design questions have been quite controversial. However, there's now a Technical Specification out [0] and, if all goes well, it should be on track for inclusion in the C++20 standard.
[0] http://open-std.org/JTC1/SC22/WG21/docs/papers/2017/n4680.pd...
For that matter whole game is more than a little silly.
Boost.Fiber has Go-like channels[0] for example, and Boost.Coro has facilities for using coroutines like generators (by using Boost.Range)
[0] http://www.boost.org/doc/libs/1_65_1/libs/fiber/doc/html/fib...