Re:(On | No) Syntactic Support for Error Handling
by kiitos on Wednesday June 04, 2025 @06:26AM
(#44179196)
I know..! Ignoring an error at a call site is a bug by the caller, that Go requires teams to de-risk via code review, rather than via the compiler. This is well understood and nobody disputes it. And yet all available evidence indicates it's just not that big of a deal and nowhere near the sort of design catastrophe that critics believe it to be. If you don't care or don't believe the data that's fine, everyone knows your position and knows how dumb you think the language is.
[ Parent
| on HN ]
Re:(On | No) Syntactic Support for Error Handling
by Yoric on Wednesday June 04, 2025 @07:25AM
(#44179495)
(not the GP)
Indeed, while not being a fan of how this aspect of Go, I have to admit that it seldom causes issues.
It is, however, part of the reasons for which you cannot attach invariants to types in Go, which is how my brain works, and probably the main reasons for which I do not enjoy working with Go.
Re:(On | No) Syntactic Support for Error Handling
by kiitos on Wednesday June 04, 2025 @09:55AM
(#44180783)
Yeah, I mean, Go doesn't see types as particularly special, rather just as one of many tools that software engineers can leverage to ship code that's maintainable and stands the test of time. If your mindset is type-oriented then Go is definitely not the language for you!