News for hackers. Stuff that matters.
Re:Errors are values by masklinn on Tuesday January 13, 2015 @04:13AM (#8878784)
> So, might as write your own ADT and name it right.

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

Either isn't custom-built for error reporting, so it makes sense that its naming only conventionally matches.

There are no comments on this comment yet.