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 482336
To read all comments associated with this story, please click here.
RE[7]: As a programmer...
by JonathanBThompson on Wed 27th Jul 2011 02:16 UTC in reply to "RE[6]: As a programmer..."
Member since:

Running out of memory in a system that has more than one process in use is an exception: it's something you can reasonably expect to happen, due to the nature of the system. So, too, would a closing socket, as stuff happens beyond your control. However, your statement about dereferencing a null pointer? That's clearly an error, since that is 100% preventable: either you allocate memory/objects/resources and get a pointer to them, or you get a null, and you never try to dereference a pointer that's not been set to start with: thus, that's a very definite error.

However, that doesn't change the fact that in both Java and C# that an exception is thrown by the runtime, which allows it to possibly be recovered from (to some extent) if you attempt to dereference a null pointer/reference. In C/C++, your program will likely be aborted by the OS, unless you're using some implementation of structured exception handling (Windows has this in something similar to C++ semantics) or appropriate signal handling in Unix/Linux and similar OSes.

Reply Parent Score: 2