Re:Overview of Rust error handling libraries
by pjmlp on Friday November 22, 2019 @12:34PM
(#21607810)
Even some std packages do it.
[ Parent
| on HN ]
Re:Overview of Rust error handling libraries
by tyri_kai_psomi on Friday November 22, 2019 @01:34PM
(#21608475)
The std lib is not the paragon of go virtue as some people make it out to be. The maintainers have been frank with some of the mistakes and things they'd do differently now but because they place the Go 1 promise above everything else (a good thing), it has some patterns not many would recommend these days, error handling among them.
Re:Overview of Rust error handling libraries
by monocasa on Friday November 22, 2019 @01:41PM
(#21608561)
And kubernetes, docker, golang.com/x/*, etc.
And it's not like they couldn't add better types to errors without breaking backwards compat. Returning a type that implements error instead of fmt.Errorf doesn't break existing semantics.