Hi,

Now that the for loop is based on external iterators, can we reconsider "for-else"?

Proposal:

    for i in iter {
        // ...
    } else {
        // ...
    }

The optional else block is executed when the for loop stops without exhausting the iterator, ie. when "break" is used.

--
Simon Sapin
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to