Re: self = [super init], nil?
Re: self = [super init], nil?
- Subject: Re: self = [super init], nil?
- From: "Sean McBride" <email@hidden>
- Date: Mon, 10 May 2010 15:20:00 -0400
- Organization: Rogue Research Inc.
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 email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden