Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
PostgreSQL 9.3 beta: Federated databases and more
LWN.net Weekly Edition for May 9, 2013
(Nearly) full tickless operation in 3.10
This pattern is the reason why the Internet is full of screenshots of those "Error: success" dialogs.
Exceptions vs Error Codes
Posted Mar 30, 2012 15:51 UTC (Fri) by khim (subscriber, #9252)
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...
Posted Mar 30, 2012 18:26 UTC (Fri) by dgm (subscriber, #49227)
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds