On Mon, 10 May 2010 21:00:40 +0200, Uli Kusterer said:

>> I personally really dislike this one, for two reasons:
>
> Third reason: It gives the method multiple points of return, which is a
>tiny bit dangerous if you're allocating/releasing resources.

Fourth reason: it doesn't play well with code coverage.  If the 'if' and
its body are on the same line then knowing that that line executed does
not tell you as much as it could if the body was on its own line.

--
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to