Re: Avoiding == and = mixup in if statements
Re: Avoiding == and = mixup in if statements
- Subject: Re: Avoiding == and = mixup in if statements
- From: Steve Bird <email@hidden>
- Date: Fri, 21 May 2004 13:32:20 -0400
On May 21, 2004, at 12:26 PM, Chris wrote:
Or change your coding style so that your compares are done like this:
if( nil == myObject )
Then if you make a mistake and type if( nil = myObject ) you'll get an
error.
Can you explain how I can remember to put the arguments in backwards,
if I can't remember to use "==" instead of "="?
----------------------------------------------------------------
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
www.Culverson.com (toll free) 1-877-676-8175
_______________________________________________
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.