LWN.net Logo

Exceptions vs Error Codes

Exceptions vs Error Codes

Posted Mar 30, 2012 15:51 UTC (Fri) by khim (subscriber, #9252)
In reply to: Exceptions vs Error Codes by mgedmin
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...


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds