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 482231
To read all comments associated with this story, please click here.
RE[5]: As a programmer...
by jessta on Tue 26th Jul 2011 09:48 UTC in reply to "RE[4]: As a programmer..."
Member since:

An exception is still an error that occurred in your code. This can be from a multitude of reasons, but many languages now treat exceptions as first class errors.

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.

but in a true OO language the Exception carries a wealth of extra information that the programmer can use to diagnose the error condition.

I assume you haven't actually had a look at how Go does error handling. Functions can return multiple values so it's idiomatic to return a value and an error value.
The error value can be null or contain a data structure containing information about the cause of the error.

Reply Parent Score: 2