> That is not added complexity IMO---particularly since it is an extraordinarily strong idiom---so I suppose we are at an impasse.
Yes, if 10 tokens, 3 lines and a conditional are not added complexity to you, I suppose we are.
Re:Impressions of Go
by burntsushi on Wednesday July 24, 2013 @01:59AM
(#6094715)
Not in this case, no.
> The issue in Go is that ignoring errors is the simplest thing you can do. And not only that, not ignoring them is a significant step up in complexity and amount of code.
I agree that error handling requires more code, but I disagree that it increases complexity. Most error handling cases I've ever written are just passing them up to the caller:
That is not added complexity IMO---particularly since it is an extraordinarily strong idiom---so I suppose we are at an impasse.