Re: Stupid block syntax!
Re: Stupid block syntax!
- Subject: Re: Stupid block syntax!
- From: Graham Cox <email@hidden>
- Date: Thu, 05 Jul 2012 10:45:57 +1000
On 05/07/2012, at 7:53 AM, Charles Srstka wrote:
> They did it that way because they were following the C function pointer syntax, just replacing the * with a ^. Really, the blame for this lies with Kernighan and Ritchie more than anyone else. I think Apple followed the C syntax because they may have some hopes about getting blocks officially added to some future revision of the C specification, although I’m not sure how realistic that is.
I read recently that the '^' was the only possible operator that could be used due to the inherent grammar of C meaning that anything else would have introduced ambiguity.
Doesn't make it any easier to use knowing that though.
--Graham
_______________________________________________
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