Re: Syntactic sugar
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