On Fri, May 30, 2014 at 2:35 PM, Oleg Eterevsky <o...@eterevsky.com> wrote:
> I can see the advantages of this solution. The only thing I don't see
> is how to pass any meaningful state with an error.

Not sure if you know this, but you can pass any object to the
single-argument version of fail!:

http://doc.rust-lang.org/std/macros/macro.fail!.html
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to