On Nov 14, 2011, at 12:53 PM, Brian Anderson wrote:

> std has a 'result::t<T, U>' type that I am trying to use for this purpose. 
> std::io makes use of this now.

Besides exceptions, I do not have a better alternative than `std::result`.  
However, I fear that if we go too far down this style, it will very painful and 
we will find ourselves wishing for syntactic sugar to support chaining (whether 
that is monads or something else).  At least this has been my experience when 
working in OCaml.

Are we sure that we do not want exceptions?


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

Reply via email to