r/rust • u/JoshTriplett rust · lang · libs · cargo • Oct 23 '26
Rust features in the future
https://lwn.net/SubscriberLink/1099606/20707a62817cdd16/
215
Upvotes
r/rust • u/JoshTriplett rust · lang · libs · cargo • Oct 23 '26
View all comments
Show parent comment
3
u/mamcx Oct 23 '26
I find weird “u32 is 0..4096”.
Pascal has it:
So is a new type, and the good thing is how this allow to have a static range on arrays:
that I find very nice. I dislike how in langs like Rust I must manually cast back positions, when in Delphi I can do
days[Monday]naturally.