I'm happy the new ranges got stabilized. It feels weird to use old stuff when you know there is something in the pipeline to replace it.
this post was submitted on 28 May 2026
47 points (100.0% liked)
Rust
8041 readers
59 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 3 years ago
MODERATORS
I'm worried about this creating a bunch of confusion in the future, but hopefully at some point they mark the old ranges as deprecated.
Ranges directly being iterators confused me so much at first because no other standard iterable types really work that way, then combined with them being !Copy they just felt wrong. The new ranges look so much easier to use and understand.
Nice stuff all in all!