News for hackers. Stuff that matters.
Re:Declined Proposal: A built-in Go error check function, “try” by schrodinger on Tuesday July 16, 2019 @09:43PM (#20455679)
go vet catches that scenario and won’t pass CI. You have to explicitly decide to ignore it by using an underscore for the err value and then you get just what you asked for.
Re:Declined Proposal: A built-in Go error check function, “try” by KirinDave on Tuesday July 16, 2019 @09:55PM (#20455740)
Sure, but it doesn't catch the case where you have multiple error variables in scope and you refer to the wrong one in one place but not the other or if you reuse an error.

I've seen that happen more than a few times. Some of it in new production code.

Re:Declined Proposal: A built-in Go error check function, “try” by apta on Tuesday July 16, 2019 @11:43PM (#20456221)
fmt.Println says otherwise. That and it's possible to overwrite previous error variables, something that is not possible with exceptions.