this post was submitted on 22 Mar 2024
51 points (98.1% liked)

Rust

6011 readers
2 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
51
2024 Edition Update (blog.rust-lang.org)
submitted 8 months ago by snaggen to c/rust
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 7 months ago

Keyword reserving is always exciting.
In this case it's gen, which allows iterators build on the state machines currently powering async.

Here is a contrived use case from me.
It's not as groundbreaking as async but it's a convenience. And hey, you could write futures without the async/await keywords, but it's easier with them