Hi,

On 12/08/2013 00:10, Daniel Micay wrote:
Perhaps it's a violation of the protocol to stop raising
StopIteration, but zip will continue to cause side effects like I/O.
It's undefined what happens if you continue producing items after you stopped. There are no safeguards in place. However any consumer of iterators can ignore the case where it might receive an already exhausted iterator which is a very good thing because it makes all the code much easier. No need to handle a special case.


Regards,
Armin

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

Reply via email to