• 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: Syntactic sugar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Syntactic sugar


  • Subject: Re: Syntactic sugar
  • From: Fredrik Olsson <email@hidden>
  • Date: Tue, 05 Sep 2006 08:20:05 +0200

CoLo0LoGo skrev:
http://en.wikipedia.org/wiki/Syntactic_sugar

Could anyone point me to any documentation of Syntactic sugar used in
Cocoa programming if it is used much in development here ?
I think Cocoa as provided is quite free from syntactic sugar. I guess what is originally there works too well, so there is no stressing need sweetening it.


I have two macros I always use though: RELEASE(foo); to both send release message and set pointer to nil, in one go. Dangling pointers bug me. And the FOREACH(foo, bar) ... to work with enumerators in three lines of code less. Both do not add anything new to Cocoa or ObjC, they just make common task less tedious, good examples of syntactic sugar I think.



// Fredrik Olsson _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Syntactic sugar (From: CoLo0LoGo <email@hidden>)

  • Prev by Date: Re: Cocoa equivalent to fputc()?
  • Next by Date: Re: Syntactic sugar
  • Previous by thread: Re: Syntactic sugar
  • Next by thread: Re: Distributed Object Connections
  • Index(es):
    • Date
    • Thread