News for hackers. Stuff that matters.
Re:Go Developer Survey 2022 Q2 Results by gregwebs on Thursday September 08, 2022 @01:32PM (#32768818)
In Rust you can use the anyhow library if you want a similar level of overhead to Go and similarly aren’t worried about differentiating error cases.

What do you think of adopting Zig’s error handling approaches to Go?

Re:Go Developer Survey 2022 Q2 Results by klodolph on Thursday September 08, 2022 @03:03PM (#32770421)
> [...] and similarly aren’t worried about differentiating error cases.

I differentiate error cases in Go, so I'm not sure what you're talking about. Sometimes it's done with ==, other times it's done with type assertions, type switches, and some helper functions in the errors package.

I've barely touched Zig.

I think it's contributing some important ideas, and maybe those ideas will get further developed in newer languages.