Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?
Slashdot Deals: Deal of the Day - Pay What You Want for the Learn to Code Bundle, includes AngularJS, Python, HTML5, Ruby, and more. ×

Submission + - The Scourge of Error Handling (drdobbs.com)

CowboyRobot writes: "Dobb's has an editorial on the problem of using return values and exceptions to handle errors. "But return values, even in the refined form found in Go, have a drawback that we've become so used to we tend to see past it: Code is cluttered with error-checking routines. Exceptions here provide greater readability: Within a single try block, I can see the various steps clearly, and skip over the various exception remedies in the catch statements. The error-handling clutter is in part moved to the end of the code thread.""
This discussion was created for logged-in users only, but now has been archived. No new comments can be posted.

The Scourge of Error Handling

Comments Filter:

Be careful when a loop exits to the same place from side and bottom.