Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).

×
Programming

+ - The Scourge of Error Handling->

Submitted by
CowboyRobot
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.""
Link to Original Source
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:

To spot the expert, pick the one who predicts the job will take the longest and cost the most.

Working...