Re:Golang Diaries II
by jameskilton on Tuesday July 16, 2013 @07:34AM
(#6051153)
Exceptions are horrible if you're trying to make a fast, dependable, reliable, low-level, concurrent modern day programming language, as Go is. Exceptions are also horrible in that they never improve the readability and understandability of any code they exist in. The Go team, some of whom actually designed C back in the day, are well familiar with Exceptions, why they are bad, and explicitly chose to not implement them.
So no, using the word "pathetic" implies a gross oversight. This was a very deliberate decision, and a good one at that.
You're excluding the comments which would be actual code to handle the very different events which all result in failure. Also, arguable only the first case would be something you'd want to throw an exception in a language which has them anyways. (Not getting a json response from a general http library is far from exceptional)
> Isn’t it pathetic that so many allegedly-mainstream languages don’t have HTTP libraries that are this natural and idiomatic?
Isn’t it pathetic that a wannabe mainstream language doesn’t provide exception handling?