3 ms·
> C++20 async/await isn't relying to competing external libraries. Standard library is a liability. It's only a matter of time before any non-trivial stuff wil
by pornel 7y ago
> C++20 async/await isn't relying to competing external libraries.
Standard library is a liability. It's only a matter of time before any non-trivial stuff will turn out to be worse than a 3rd party solution, and won't be able to catch up due to std's constraints (C++ regex being extreme example).
Rust has already learned that lesson with channels. So instead of having to say "don't use std's, use the other faster nicer thing", Rust skips over the tech debt part, and recommends the other faster nicer thing immediately.
And a clean separation of await from its runtime is actually pretty cool. I'm writing a GTK+ app right now, and I can await button clicks on its event loop.