On Sun, Dec 1, 2013 at 1:43 PM, Daniel Micay <[email protected]> wrote:

> Ranges are a more
> modern implementation of iterators and are much more easily composed.
> Ranges are also trivially memory safe, and I doubt that split
> current/end iterators can provide memory safety with only references.
>

Agreed with Daniel. The C++ community has by and large reached the
conclusion that ranges are a much better idea than iterators. Boost.Range
is commonly recommended. There's also talk about getting ranges into the
C++ standard; see
N3350<http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3350.html>for
an example.

Let's not make the same mistake in Rust that C++ is now struggling to fix.


> _______________________________________________
> Rust-dev mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/rust-dev
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to