• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Avoiding == and = mixup in if statements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Avoiding == and = mixup in if statements
      • From: Wade Tregaskis <email@hidden>
  • Prev by Date: WebKit & Caching Data/Stylesheets
  • Next by Date: [OFFish] Performance difference between passing smallish structs by reference or value
  • Previous by thread: RE: Avoiding == and = mixup in if statements
  • Next by thread: Re: Avoiding == and = mixup in if statements
  • Index(es):
    • Date
    • Thread