Re: Xcode 4.1 GM exception raised in PDFkit
Re: Xcode 4.1 GM exception raised in PDFkit
- Subject: Re: Xcode 4.1 GM exception raised in PDFkit
- From: "Glenn L. Austin" <email@hidden>
- Date: Mon, 01 Aug 2011 16:30:09 -0700
On Aug 1, 2011, at 2:49 PM, Scott Ribe wrote: On Aug 1, 2011, at 3:34 PM, Dave Keck wrote: This is a C++ exception, which are often used as normal flow control
mechanisms.
Not in Apple's libraries they're not--not to mention that ***every*** reference I've ever read specifically recommends against using exceptions for normal flow control, and every C++ code base I've ever dealt with followed that recommendation.
I agree -- especially with "zero-cost exceptions," setting up an exception handling block is the "zero-cost" part. It is when throwing an exception that the exception handling becomes extremely costly.
Don't use C++ exceptions for normal flow control, only for cases where there is *no* other means of handling the error (ex: the directory you've been told to iterate has been deleted).
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden