Linked by fran on Fri 22nd Jul 2011 21:02 UTC
Google "Now everyone can use Google's Go language on the company's App Engine cloud platform as the company has announced that the Go runtime, which has been in development since it was announced at Google I/O, is now generally available."
Permalink for comment 482291
To read all comments associated with this story, please click here.
RE[6]: As a programmer...
by Kalessin on Tue 26th Jul 2011 20:33 UTC in reply to "RE[5]: As a programmer..."
Member since:

Exceptions aren't recoverable. Your can't plan for them and handle them. An exception is a bug in your program and it can't continue until someone fixes the bug. It can restart but that's not really error handling.

Errors are expected so code can be written to handle them and attempt some kind of recovery. Treating exceptions as errors leads to attempts to recover from unrecoverable situations.

I find that particular distinction interesting since it's completely backwards from what I'd expect. I would expect errors to be unrecoverable and exceptions to be at least potentially recoverable. For instance, I would expect running out of memory or dereferencing a null pointer to be an error, whereas I would expect trying to read from a closed socket to be an exception.

It's all a matter of semantics, because it's ultimately the concepts that matter rather than exactly what you call them. But still, if the official Go terminology has error referring to something recoverable and exception referring to something unrecoverable, it strikes me as being incredibly backwards.

I guess that it just goes to show that you have to make sure that everyone is on the same page terminology-wise before discussing something, or you're going to have communication problems.

Reply Parent Score: 1