3 ms·
> So, might as write your own ADT and name it right. http://doc.rust-lang.org/std/result/enum.Result.html http://doc.rust-lang.org/std/result/enum.Result.html
by masklinn 12y ago
> So, might as write your own ADT and name it right.
http://doc.rust-lang.org/std/result/enum.Result.html http://doc.rust-lang.org/std/result/enum.Result.html
> (Also, a real error-reporting mechanism should support cause chaining so you can see the dependencies; you can sort of do it with string concatenation but it gets awkward after a few levels.)
http://doc.rust-lang.org/std/error/trait.Error.html http://doc.rust-lang.org/std/error/trait.Error.html
Either isn't custom-built for error reporting, so it makes sense that its naming only conventionally matches.