On May 29, 2015, at 11:17 AM, Alex Zavatone <[email protected]> wrote:
>
> On May 29, 2015, at 2:16 PM, Scott Ribe wrote:
>
>> On May 29, 2015, at 11:49 AM, Alex Zavatone <[email protected]> wrote:
>>>
>>> Would this handle it properly?
>>>
>>> if (!(self = [super init])) {
>>> return nil;
>>> }
>>
>> Yes.
>>
>>> if (!(self == [super init]))
>>
>> No. But not sure whether you were asking about that or not…
>
> Typing == by habit. My mistake.
Our style is
self = [super init];
if (!self) {
return nil;
}
because == is a habit, and that ! in (!( is hard to spot when it’s accidentally
left out.
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]