Re: Fast Enumeration and temporary objects/autoreleasing
Re: Fast Enumeration and temporary objects/autoreleasing
- Subject: Re: Fast Enumeration and temporary objects/autoreleasing
- From: Jayson Adams <email@hidden>
- Date: Tue, 17 Apr 2012 00:32:52 -0700
On Apr 17, 2012, at 1:28 AM, Graham Cox <email@hidden> wrote:
> …having been using Objective C productively for over 10 years now, that I still find ARC something I have not needed. So far. I'm kinda hoping that remains true, because it actually seems pretty complicated in order to cover all the arcane use-cases and I'd rather stick to what I know which has the overwhelming advantage of being really, really simple.
+1
On Apr 16, 2012, at 11:08 PM, Dave Zarzycki wrote:
> ARC simply automates and enforces Cocoa conventions. No more, no less. Therefore those "arcane use-cases" are in fact where programmers get themselves into really subtle trouble with manual reference counting.
Not exactly. As you know, there are special considerations when using ARC and CoreFoundation objects, some of the semantics with blocks change when you switch to ARC, and so on and so forth, which is why the Transitioning to ARC documentation is as long as it is (although not nearly as mind-numbing as the clang AutomaticReferenceCounting documentation).
As I said in a different thread, I am glad that ARC lets you opt in or out.
Best,
__jayson
Circus Ponies NoteBook - Introducing An App That Boosts Your Productivity
at Work or School, So You Get The Grades, Raises and Promotions You Want.
www.circusponies.com
_______________________________________________
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