LWN.net Logo

Quotes of the week

Quotes of the week

Posted Jul 4, 2012 6:02 UTC (Wed) by raven667 (subscriber, #5198)
In reply to: Quotes of the week by twm
Parent article: Quotes of the week

If you are going to check return codes how is that different, other than stylistically from putting try/except blocks around things? You have to do error checking and handling for either case, in the case of exceptions you have a default action (abort) and a detailed message, in the case of return codes your app weaves drunkenly along with incorrect/corrupt data doing bad things.


(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