Re: Re(2): CriticalAlert
Re: Re(2): CriticalAlert
- Subject: Re: Re(2): CriticalAlert
- From: Vince DeMarco <email@hidden>
- Date: Thu, 20 Dec 2001 21:08:02 -0800
On Thursday, December 20, 2001, at 11:58 am, Jens Bauer wrote:
Hi John,
#define is ==
#define or ||
#define and &&
Definately a good solution!
Except for the poor developer who has to maintain your code latter. If i
had to edit code like that the first thing i would do is switch everything
back to normal and remove the macros.
vince
You could also change "is" to "equals" if you like that better:
if (mom equals superman)
I've used exchanging the parameters for many years:
if(4 == count)
{
...
}
-I also *always* put braces after if, while, for, etc:
if(12 == monkeys)
{
// DebugStr("\pYes.");
}
-And I never use "do", but place the while at the top, or use for, to
avoid...
{
...
}while(true);
Love,
Jens
_______________________________________________
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.