On Sun, Dec 1, 2013 at 4:33 PM, Pierre Talbot <ptal...@hyc.io> wrote:
> This doesn't seem to be a small project :-) By the way, I'm not sure if this
> is a good idea in Rust, but we might provide two free functions begin and
> end taking sequence and returning iterators. Anything that can be understood
> in term of sequence would just need to have an overload of these functions
> and the for-based loop transformation would be easy to change. This idea
> just come from my experience in C++ and I'd be happy to know why it wouldn't
> apply in Rust.

I don't understand why this would be a good thing. 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.
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to