3 ms·
Rust had generators first and used them to experiment with async. They're still there, stuck in nightly/unstable. https://doc.rust-lang.org/beta/unstable-book/
by pornel 3y ago
Rust had generators first and used them to experiment with async. They're still there, stuck in nightly/unstable.
https://doc.rust-lang.org/beta/unstable-book/language-features/generators.html https://doc.rust-lang.org/beta/unstable-book/language-featur...
I think that's because there was a huge demand for async specifically, and Rust could ship higher level async without solving all the design details of less desired generators first.
- Buttons840 3y agoI didn't know that, thanks for telling me.