Re: Avoiding == and = mixup in if statements
Re: Avoiding == and = mixup in if statements
- Subject: Re: Avoiding == and = mixup in if statements
- From: Gregory Weston <email@hidden>
- Date: Sat, 22 May 2004 22:19:15 -0400
On May 22, 2004, at 9:06 PM, mathew wrote:
On May 21, 2004, at 14:07, David Blanton wrote:
This topic has been beaten to death on this list when the answer is
learn the language!!
Some of us aren't amateurs, and know many programming languages. It's
all too easy to momentarily forget whether you should be using '=' 'eq'
'==' 'equals' or a method to compare two things, when you write code in
three or four different languages most days.
Sure, if all you know is C, the answer is to learn the language better.
This response is surreal to me, speaking as someone who's comfortable
with a few dozen programming languages.
I don't think it's reasonable to suggest that someone is going to
momentarily forget which form of an operator they should use, because
the languages are distinct enough that every bit of typing is going to
be reinforcing that you're in language X instead of Q, F or K. It's
subconscious, but it's real.
G
_______________________________________________
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.