On Nov 16, 2011, at 11:07 AM, Brian Anderson wrote:

> I had thought to redefine result as result<T> { ok(T); err(any); } once that 
> was possible, but I do think maybe creating an exn type as David proposed 
> could be better.

I am somewhat indifferent as to the precise type of exceptions, so long as you 
can print it out it's good enough 99% of the time.  I could imagine this being 
a good place for an interface, too.  Something like:

    iface failure {
        fn msg() -> str;
        fn data() -> any;
    }



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

Reply via email to