Re: Is "-init" really needed?
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=04042017; t=1502210726; bh=c/YPE+p8jYxOl/o8xcZwGWw2NJ7uXckV87X/lRnokz0=; h=From:Message-id:Content-type:MIME-version:Subject:Date:To; b=ZNXsaynek0k3wQsPoyok/q4JnEZlGRiJ2XdalOSfl2Uugn/ujadfAM2DXL0QSmRIB Kpm1S/MD8lcgqCXaw8rbbBHAjuhkvyLHBTXkkC+en9kOlMH2X1GCVkfZH9Exmo28hw Ry7/t4tfL2jDxiH0gRYnW1aoFTyCL08LDIqK++ub4HMMTek5HTPcFQsGOZ6NEWHvfx K8Nj2uZFjzrGPULEYRL+CUpA2WP53C0yMhdR/c8E36Oi1MjDJJK2YhrQl3Ac4xa0Yz ANTxxogTiQY1E9zAIRs3ZeVKCjDdI7MgIwrguTKqA0EWXhDwnh3an0cBCdUlw1hfzo Jfqa48NvNyi7A== 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 <witness.of.teachtext@gmx.net> wrote:
On 8. Aug 2017, at 02:23, Carl Hoefs <newslists@autonomy.caltech.edu> 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 (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: https://lists.apple.com/mailman/options/cocoa-dev/zav%40mac.com
This email sent to zav@mac.com
_______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Alex Zavatone