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
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
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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