11 ms·
>Even if you add the recent additions, it is still less stuff than Rust already has. For instance, async. C++ has been trying to add generators and async funct
by Arnavion 7y ago
>Even if you add the recent additions, it is still less stuff than Rust already has. For instance, async.
C++ has been trying to add generators and async functions (`co_yield` and `co_await`) for a while now. I'm almost certain they had started being discussed and were even available as preview features in some C++ compilers before Rust started implementing them.
- Arnavion 7y agoIndeed, MSVC had a preview in 2014 https://devblogs.microsoft.com/cppblog/resumable-functions-in-c/ https://devblogs.microsoft.com/cppblog/resumable-functions-i...