• 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: Adam <email@hidden>
  • Date: Fri, 21 May 2004 21:51:28 -0400

On May 21, 2004, at 7:33 PM, David Blanton wrote:

On 5/21/04 2:48 PM, "Mel Walker" <email@hidden> wrote:

On May 21, 2004, at 1:22 PM, David Blanton wrote:

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.

Except you forgot the part about never never never ever ever ever
making a typo.

Unless, of course, you really honestly believe that everyone who makes
that mistake, makes it because they don't really know C very well. :-)
_______________________________________________
I think that anyone who make the = when it should be == error more than once
should reconsider their position. McDonalds has pictographs on their
keyboards to prevent this kind of error. :-|




I agree with the sentiment here, but I would like to say in my own words that it can be hard for beginner programmers to see the difference. Eventually it becomes second nature, or you move on the patty flipping.


Adam
_______________________________________________
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.


References: 
 >Re: Avoiding == and = mixup in if statements (From: David Blanton <email@hidden>)

  • Prev by Date: Re: NSMakePoint and such - what about memory allocation?
  • Next by Date: Re: NSMakePoint and such - what about memory allocation?
  • Previous by thread: Re: Avoiding == and = mixup in if statements
  • Next by thread: Re: Avoiding == and = mixup in if statements
  • Index(es):
    • Date
    • Thread