• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is "-init" really needed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is "-init" really needed?


  • Subject: Re: Is "-init" really needed?
  • From: Leo <email@hidden>
  • Date: Wed, 9 Aug 2017 19:59:27 -0400

I love "new".

Why type more and clutter your code when you don't have to.


Cheers,
Leo



On 8/8/17 12:45 PM, Alex Zavatone wrote:
I see it creeping back in to use with some people, but IMO, new bears too many
references to other languages’ use of new.

It seems too close to how it would be used in other languages and may imply
things that aren’t the best.

I think it’s a case of, “well in the olden days, new was used for stuff that
was different.  We’ll use another word now.”

This just seems like a case of, “yeah, you can do it, but it’s probably better
to let it rest and use another approach.”

Thoughts?  Agree?  Disagree?

- Alex Zavatone

On Aug 8, 2017, at 5:13 AM, Uli Kusterer <email@hidden> wrote:

On 8. Aug 2017, at 02:23, Carl Hoefs <email@hidden> wrote:
Is the use of +new discouraged also?
Apple have gone back and forth on this AFAIR. +new was actually the
pre-retain/release way to create an object. So it has been discouraged since
... OpenStep, I think? But it was never formally deprecated, and I'm seeing it
used more and more in ARC code these days.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de

_______________________________________________

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
_______________________________________________

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

_______________________________________________

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

References: 
 >Is "-init" really needed? (From: David Hoerl <email@hidden>)
 >Re: Is "-init" really needed? (From: Jens Alfke <email@hidden>)
 >Re: Is "-init" really needed? (From: じょいすじょん <email@hidden>)
 >Re: Is "-init" really needed? (From: Carl Hoefs <email@hidden>)
 >Re: Is "-init" really needed? (From: Uli Kusterer <email@hidden>)
 >Re: Is "-init" really needed? (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Is "-init" really needed?
  • Next by Date: Re: Is "-init" really needed?
  • Previous by thread: Re: Is "-init" really needed?
  • Next by thread: Re: Is "-init" really needed?
  • Index(es):
    • Date
    • Thread