• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Stupid block syntax!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Stupid block syntax!
      • From: Vincent Habchi <email@hidden>
    • Re: Stupid block syntax!
      • From: Sean McBride <email@hidden>
References: 
 >Stupid block syntax! (From: Graham Cox <email@hidden>)
 >Re: Stupid block syntax! (From: Quincey Morris <email@hidden>)
 >Re: Stupid block syntax! (From: Dave <email@hidden>)
 >Re: Stupid block syntax! (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Dynamic modification of text search results
  • Next by Date: Re: Crash when calling va_arg()
  • Previous by thread: Re: Stupid block syntax!
  • Next by thread: Re: Stupid block syntax!
  • Index(es):
    • Date
    • Thread