Re:Alan Donovan and Brian Kernighan Answer Questions on Go
by jfb on Friday November 20, 2015 @12:14PM
(#10602338)
It's not idiomatic, or good, but neither is ignoring the return value from a go function call. Both languages fail to provide better affordances for error checking.
Re:Alan Donovan and Brian Kernighan Answer Questions on Go
by mcguire on Friday November 20, 2015 @06:45PM
(#10604634)
That it's bad style is kind of the point: The standard response from Go advocates is that ignoring errors is not idiomatic, but it's not good style anywhere, in any language where it isn't outright illegal.
Re:Alan Donovan and Brian Kernighan Answer Questions on Go
by jfb on Saturday November 21, 2015 @09:04AM
(#10606816)
I think we're in violent agreement. I wasn't saying that Go's affordances solve this problem, merely pointing out that checked exceptions in Java aren't any kind of a dispositive solution.
Also, you don't need the semicolon.