News for hackers. Stuff that matters.
Re:Declined Proposal: A built-in Go error check function, “try” by EdwardDiego on Tuesday July 16, 2019 @09:46PM (#20455695)
My most hated checked exception is the IOException Jackson throws when parsing JSON I can guarantee to be valid JSON.

I could live with a runtime exception, or perhaps an API that differentiates parsing "potentially not-parseable JSON" and "JSON I can vouch for".

Re:Declined Proposal: A built-in Go error check function, “try” by thomascgalvin on Tuesday July 16, 2019 @10:03PM (#20455771)
I usually end up writing a bunch of utility methods for stuff like this. Typically it's called something like `parseQuietly`, and it just Pokemons any exceptions.
Re:Declined Proposal: A built-in Go error check function, “try” by EdwardDiego on Tuesday July 16, 2019 @11:59PM (#20456310)
I am stealing Pokemon as a verb, my thanks.