Re: Avoiding == and = mixup in if statements
Re: Avoiding == and = mixup in if statements
- Subject: Re: Avoiding == and = mixup in if statements
- From: David Blanton <email@hidden>
- Date: Fri, 21 May 2004 12:07:36 -0600
On 5/20/04 9:29 PM, "Wade Tregaskis" <email@hidden>
wrote:
>
> Java disallows stuff like
>
>
>
> if (myObject=nil) { dosomething }
>
>
>
> Is it possible to maybe disallow the same potential error when I'm
>
> writing obj-c programs? Could I do something with the pre-processor
>
> perhaps?
>
Every response I have seen attacks the symptom and not the problem; a very
poor approach to software engineering.
The problem is not knowing the language. If you want to add two ints do you
know to use + or are you confused by - because it 'kinda looks like +, half
of it anyway."
This topic has been beaten to death on this list when the answer is learn
the language!!
There, I finally said it.
DB
_______________________________________________
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.