On 10/16/13 11:02 AM, Alex Crichton wrote:
All that being said, we're not making much progress without an idea of where to
possibly go next. Right now, the current idea is to create an Error trait and
have I/O operations return Result<T, ~Error> instead of Option<T>. This would
mean that Reader/Writer and other associated traits would be defined for
Result<T, ~Error> where T: Trait (so you could still chain operations easily),
and you could very easily check for an I/O error.

+1 for the use of Result. Yay monads!

Patrick

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

Reply via email to