On Sep 9, 2013, at 3:45 PM, Patrick Cusack <livinginlosange...@mac.com> wrote: > I appreciate everyone's replies. It was a question asked in complete > humility. I agree that computers can do analysis much better than humans and > that the less code you write, the less you have to debug, so ARC makes a lot > of sense. My question really stemmed from Apple's WWDC lecture which appeared > to justify the switch on the flimsiest of grounds, ie no longer having to be > confused by [NSString stringWithFormat:] vs [NSString initWithString:] which > is a pretty easy memory management rule.
That's not the only motivation, but it's an easy one to illustrate on a slide. It may be a simple rule, but the static analyzer taught us that everybody gets it wrong at least sometimes. Fortunately, the static analyzer also taught us that the Cocoa memory management rules were followed strictly enough in practice to allow them to be automated with only a handful of special cases. Thus, ARC. -- Greg Parker gpar...@apple.com Runtime Wrangler _______________________________________________ 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com