Exceptions vs Error Codes
Posted Mar 30, 2012 15:51 UTC (Fri) by khim
In reply to: Exceptions vs Error Codes
Parent article: Go version 1 released
True. But think about it: just why all these pictures are copied from one resource to another? Because they are rare and thus funny.
On the other hand uncaught exception dumped on the unsuspected user are so common nobody ever tries to ridicule them: it's not funny, it's just sad.
IMNSHO this shows that usually exceptions are not needed and dangerous (just like usually full GC is unneeded and problematic), but some help is welcome. Multiple return values in Go looks like goo 99% compromise. Just as scoped_ptr plus occasional shared_ptr are good compromise WRT GC - to bad Go advocates full GC...
to post comments)