Re: Is "-init" really needed?
Re: Is "-init" really needed?
- Subject: Re: Is "-init" really needed?
- From: Steve Mills <email@hidden>
- Date: Tue, 08 Aug 2017 18:09:27 +0000 (GMT)
On Aug 08, 2017, at 12:35 PM, Jeff Szuhay <email@hidden> wrote:
On Aug 8, 2017, at 10:12 AM, Steve Mills <email@hidden> wrote:
It's a term that's part of the language, so use it. I know what language I'm typing in,
so I'm not going to confuse [NSThing new] with "new CPlusPlusClass". Even if I
did lose my mind and not understand what I'm typing, the compiler would point out my
mistake.
Completely agree.
With me or with the message I replied to, but you didn't quote?
When I see [foo new] I think C++.
Why? That's not C++ syntax.
I recently had a case where I needed alloc alone and init’ed the object later.
Yes, and that's not a place where you'd use new, obviously. new is a handy
shortcut, not a replacement for all version of alloc/init*.
Sent from iCloud's ridiculous UI, so, sorry about the formatting
_______________________________________________
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