Hacker News new | ask | show | jobs
by alvarelle 2243 days ago
I don't know about the others, but C++ don't have a default implementation as part of the standard. If you want an event loop, you need to use one of the many libraries that provide one.
1 comments

C++20 surely has one.
No, it hasn't.

Actually C++20 comes with only the minimal support for coroutines in the std library. If you want to do anything useful, you need to implement a promise type yourself which is very hard to do without using one library that does that.

From the looks of it, and what I am already able to do with Visual C++ I bet it still is more functional than what Rust currently offers.

And that I won't need to rewrite it when I try out the same code with another C++20 compiler.