Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The equivalent of Ranges is already in Rust’s standard library, and has been forever. We call it Iterator. It also provides extra static guarantees against invalidation.


I see that you did not understand my question.

I see, too, that there are plans for some support for generics in the near future. So the answer might become yes, in time.


Rust has also had generics for a very long time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: