Re: C question for you old guys ;-)
Re: C question for you old guys ;-)
- Subject: Re: C question for you old guys ;-)
- From: Andy Lee <email@hidden>
- Date: Wed, 11 Jun 2003 11:48:54 -0400
At 11:43 AM -0700 6/9/03, John C. Randolph wrote:
When I write
#define is ==
#define and &&
#define or ||
#define until(a) while(!(a))
Out of curiosity -- do you also use...
#define not !
...? I find the difference between...
if ([something doesSomethingWith:somethingElse])
...and...
if (![something doesSomethingWith:somethingElse])
...harder to spot than the difference between = and ==, though I
suppose I could get into the habit of surrounding the ! with spaces:
if ( ! [something doesSomethingWith:somethingElse])
--Andy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.