Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion etiology of exceptions
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nick Keighley  
View profile  
 More options Oct 10 2012, 11:06 am
Newsgroups: comp.programming
From: Nick Keighley <nick_keighley_nos...@hotmail.com>
Date: Wed, 10 Oct 2012 08:06:05 -0700 (PDT)
Local: Wed, Oct 10 2012 11:06 am
Subject: Re: etiology of exceptions
On Oct 8, 7:13 am, jussi.san...@ard.fi wrote:

> tiistai, 25. syyskuuta 2012 17.29.21 UTC+3 bob kirjoitti:

> > What is the etiology of exceptions? Did they come about because people got tired of having to check a return value every time they called a function?

> Not answering the etiology of exceptions question, sorry. But a related question: What is the best understanding of their role after 40+ years?
> Let me try:
> -exceptions for programmer errors only
> -exceptions should be reserved for complete failures

no to both of these. I've used exceptions to exit from deeply nested
parsers. There is no point in propagating an error through the various
calls and it makes everything more complicated.

You might be thinking of assertions.

> -exception are no program flow cotrol structures

probably

> -exception do not add to program correctness, but to robustness (operation out of specifications)

the exceptions a function may throw could be thought of as part of its
specification (though C++ has problems with this)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.