News for hackers. Stuff that matters.
Re:New in Go 1.20: wrapping multiple errors by thiht on Sunday December 11, 2022 @05:04PM (#33948067)
> This was a golden opportunity to implement some typical form of exception handling

No one wants that in Go, please stop trying to shove it down like it’s THE solution.

A lot of Go users are fine with the way error currently work, because they’re considered as values, and their handling don’t break the flow like exceptions do.

Sure, Results would have been better, but this ship has sailed. I’d settle for allowing inline « if » expressions, but besides that, error handling in Go is fine.

There are no comments on this comment yet.