3 ms·
Could you write a Rust equivalent of the STL, or its modern cousin Ranges? That's just one library (as of C++20), but if Rust is not up to that, there's no poin
by ncmncm 8y ago
Could you write a Rust equivalent of the STL, or its modern cousin Ranges? That's just one library (as of C++20), but if Rust is not up to that, there's no point in going further.
- steveklabnik 8y agoThe 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.
- ncmncm 8y agoI 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.
- steveklabnik 8y agoRust has also had generics for a very long time.