News for hackers. Stuff that matters.
Re:Announcing Rust 1.13 by cpuguy83 on Thursday November 10, 2016 @09:39PM (#12927009)
go errors are generally backed by structs as well (though not necessarily), even `fmt.Errorf("some error")` is a struct (called `errorString`).

`Error() string` is just the interface that things that want to be errors must implement, which ideally gives you the human readable version of the error.

Re:Announcing Rust 1.13 by saghm on Thursday November 10, 2016 @10:11PM (#12927267)
In Rust, I think it's more idiomatic to just implement the `Display` trait on you error type so that you can generate the string when you need it instead of at the time the error occurs