News for hackers. Stuff that matters.
Re:Declined Proposal: A built-in Go error check function, “try” by pbreit on Tuesday July 16, 2019 @10:32PM (#20455904)
If it matters to anyone, this novice finds “if” easier to understand than “try”.

Very refreshing for novice to agree on expert on a topic.

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.
Re:Declined Proposal: A built-in Go error check function, “try” by Someone on Wednesday July 17, 2019 @03:23AM (#20457264)
Had anybody ever thought about using ‘go generate’ to insert missing ‘if err… return’ clauses with descriptive error messages?

If so, where’s (s)he buried? :-)