Re: nonatomic vs atomic assign/retain
Re: nonatomic vs atomic assign/retain
- Subject: Re: nonatomic vs atomic assign/retain
- From: Torsten Curdt <email@hidden>
- Date: Wed, 07 Sep 2011 09:39:08 +0200
>> At the time ObjC-2 was in development there was a debate within Apple about whether to make ‘nonatomic’ be the default, with an ‘atomic’ keyword to enable the safety features. I really wish it had gone that way.
+1
> Based on discussion on the dev forums, atomic properties are the recommended default except for things like performance-critical code or frameworks that assume they're running on a single thread. Also note that the retain/autorelease pattern is optimized under ARC. Making the "safe" version the default is a sensible decision, in my humble opinion.
I am all for safe. Just have a hard time seeing the risk for outlets.
If there is no risk it's kind of odd to play safe.
Thanks for bringing the discussion results over from the forums.
cheers,
Torsten
_______________________________________________
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