Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I guess my initial reaction of a lot of boilerplate was mainly due to the default Rust error having a message, description, and a cause, instead of Go's default error that just has the message.

The `Error` trait in Rust only demands that you define the `description` method.[1] The other two are optional.

[1] - http://doc.rust-lang.org/std/error/trait.Error.html



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: