3 ms·
Less jarring than the keywords blog post to be honest. This doesn't skew away from existing Rust syntax at all, whereas the keywords proposal introduce more syn
by epilys 4y ago
Less jarring than the keywords blog post to be honest. This doesn't skew away from existing Rust syntax at all, whereas the keywords proposal introduce more syntactic noise.
- insanitybit 4y agoWell it introduces `yield` and multiple macros. Presumably these would turn into keywords/ syntax at some point.
- shepmaster 4y agoPedantically, `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