what should be added to C

david at ztivax.UUCP david at ztivax.UUCP
Wed Jun 4 20:19:00 AEST 1986


PLEASE don't make := the assignment operator!!!!!

[shift][:] [=]  is a pain, slow, it hurts my fingers :-) and
it is error prone if you type fast.

The assignment operator is easily the most common, and so it
should be one character, unshifted.

If mixing up "=" and "==" is a big problem, make it a warning
generated by the compiler.  This is very easy to do, just like
inserting semicolons or parens, or deleting extra parens  (Obviously,
making such changes often invalidates the code). 

True, extraneous error messages are a pain, but at least you get
warned.  Better: add them to lint, and leave C alone.



More information about the Comp.lang.c mailing list