• 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: C question for you old guys ;-)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C question for you old guys ;-)


  • Subject: Re: C question for you old guys ;-)
  • From: Rob Kuilman <email@hidden>
  • Date: Mon, 9 Jun 2003 23:21:48 +0200

On Monday, June 9, 2003, at 10:46 PM, John C. Randolph wrote:

On Monday, June 9, 2003, at 01:26 PM, zauhar wrote:

I can't tell you how many times I have typed '=' when it should have been '=='. Likewise '&' instead of '&&'.

I think those macros are a very good idea.

I notice that the reaction to them here is about the same as when I first mentioned them on comp.lang.c in 1985 or so. ;-)


I cant tell you how the compilers were back then, since i was only two years old, but for a well, long while now, most compilers
(at least GCC and CW) warn you for this 'possibly unwanted assignment' thingy...

i'm really very strong against these macros... to make a mistake like = instead of == youll have to do the following:
- type = instead of ==
- not read back the code you just wrote
- ignore the compiler warning (or turn those warnings of in the settings, which is stupid as well imho)
- spend ages for you to finally find the error...

thereby, as i said before, i find 'is' a lot harder to read than '==' :-)

Robert K.

web: http://halfduplex.net/
email: email@hidden
------------------------------------------------------------------------ ---------------------
_______________________________________________
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: C question for you old guys ;-)
      • From: "John C. Randolph" <email@hidden>
References: 
 >Re: C question for you old guys ;-) (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: C question for you old guys ;-)
  • Next by Date: Re: C question for you old guys ;-)
  • Previous by thread: Re: C question for you old guys ;-)
  • Next by thread: Re: C question for you old guys ;-)
  • Index(es):
    • Date
    • Thread