Re:Declined Proposal: A built-in Go error check function, “try”
by tdb7893 on Tuesday July 16, 2019 @11:01PM
(#20456039)
I don't think many people think that "if" is hard to understand. My problem with the "if" statements is that a third to half of the lines in a couple of my codebase are roughly the same copy pasted error handling (the codebases use the os package, which has pretty much every function return errors) and having all of that same boilerplate just clutters the code and makes it harder to read. It would be a real readability win to have less boilerplate in Go.
[ Parent
| on HN ]