Le 13/08/2013 01:19, Ian P. Cooke a écrit :
I'm reminded of the work done at Microsoft the showed that Observable
and Enumerable were duals (e.g.
http://csl.stanford.edu/~christos/pldi2010.fit/meijer.duality.pdf
<http://csl.stanford.edu/%7Echristos/pldi2010.fit/meijer.duality.pdf> )
The relevant idea is that a richer interface that includes wether the
the subject completed normally or via exception is very useful
especially when it comes to composition of such things.
as for something concrete: -1 for for-else. I don't like the reuse of
'else' and it's not a construct most people use often.
I’m not too attached to the name. Do you have suggestions on how it
could work?
--
Simon Sapin
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev