Hi,
On 11/08/2013 16:18, Armin Ronacher wrote:
Yes, in theory you could make a function that returns nil but is
declared as returning an iterator, just return the empty iterator for
that type, but that seems wrong.
In addition to that does "yield fn" do a step towards solving the
confusion that the return type from the function gets magically
substituted for something else.
Regards,
Armin
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev