[Exceptional C++ Style] Item 12: Exception Safety: Is it Wort h it?

James Dennett jdennett at acm.org
Mon Dec 6 23:43:09 EST 2004


On Monday, December 6, 2004, at 02:02 AM, Hammond, Peter wrote:

>
> James Dennet wrote:
>
>> On Thursday, December 2, 2004, at 08:35 AM, Hammond, Peter wrote:
>>

[snip]

>>> So how do you justify either using exceptions or not using them?
>>>
>> It depends on many factors, as do most such decisions.
>>
>> -- James
>>
>
> Any chance we could enumerate some of them? It would be very useful to 
> me.
> One of them is the presence of resources that are not cleaned up by 
> the OS,
> as you mentioned above.
>
Tool support is one.  Libraries which must be integrated could count as
part of that.  Integration with C can be a factor.  Programmer knowledge
is definitely a big factor.  Retrofitting exceptions to an existing 
codebase
is hard, and in my opinion rarely worthwhile.

-- James




More information about the Effective-cpp mailing list