== vs =

William E. Davidsen Jr davidsen at steinmetz.steinmetz.ge.com
Wed Apr 6 06:32:03 AEST 1988


In article <48100001 at lan000> iwb at lan000.UUCP writes:
> [...]
>	I'm curious, is there anyone other than Ray Dunn that does
>not like = and == ?  As far as I know, he is the only one that
>complains.  If this is the case,  I think he should write his own
>language specification and call it...oh, I don't know...R ?
>	D, RC, RD are not allowed.
>	Why?  Oh...I don't know...

I complain! I have been teaching C for five years, as well as using it
in projects for work. Incorrect use of = for == is one of the most
common errors I see (not that any one error represents more than about
5%, I admit). Morover it shows up more in the code of experienced
programmers, because they don'y make as many other mistakes. The problem
is not a failure to understand, but a failure in typing, one of
of the hardest errors to find.

Did you catch the repeated use of "of" above? It's hard to find these
things.

Will the next language after C be D or P? After all, C came from B, and
B was a cut down BCPL...

-- 
	bill davidsen		(wedu at ge-crd.arpa)
  {uunet | philabs | seismo}!steinmetz!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me



More information about the Comp.lang.c mailing list