Re: Syntactic sugar
Re: Syntactic sugar
- Subject: Re: Syntactic sugar
- From: Andrew Farmer <email@hidden>
- Date: Mon, 4 Sep 2006 21:59:13 -0700
On 04 Sep 06, at 11:49, CoLo0LoGo wrote:
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 ?
A few examples:
* IBOutlet and IBAction are a minor form of syntactic sugar - they're
both typedef'd as equivalent to void.
* The Cocoa headers define a set of macros (NS_DURING et al) which
implement exception handling. However, they're now superseded by the
@synchronized keyword.
* Some programmers - myself included - use a complex macro to implement
a foreach() looping structure.
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
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