2 ms·
Pedantically, `yield` is already a keyword [1]. As the project's README states, generators [2] are an unstable part of Rust, and the `yield` keyword goes with t
by shepmaster 4y ago
Pedantically, `yield` is already a keyword [1]. As the project's README states, generators [2] are an unstable part of Rust, and the `yield` keyword goes with them.
[1]: https://doc.rust-lang.org/reference/keywords.html?highlight=yield#reserved-keywords https://doc.rust-lang.org/reference/keywords.html?highlight=...
[2]: https://doc.rust-lang.org/std/ops/trait.Generator.html https://doc.rust-lang.org/std/ops/trait.Generator.html