5 ms·
Ah, I understand. You're referring to how iterators in C++ are generalized indices into their collections. Certainly, Rust iterators have a more constrained pur
by Twisol 8y ago
Ah, I understand. You're referring to how iterators in C++ are generalized indices into their collections. Certainly, Rust iterators have a more constrained purpose.
I personally prefer having separate constructs for iteration and indexing, so I think it's a matter of taste.