A question of style

Doug Gwyn gwyn at smoke.BRL.MIL
Tue Dec 5 16:37:43 AEST 1989


In article <565 at s5.Morgan.COM> amull at Morgan.COM (Andrew P. Mullhaupt) writes:
-I would like to elaborate: There are no good excuses for the comma
-operator because it masquerades as true concurrent assignment where
-it is a poor relation of it.

No such thing.  C's comma operator is specifically sequential,
not even remotely concurrent.

It has uses primarily in macros, occasionally in conditionals.

-... I am preparing a long
-treatment of this issue for posting in this newsgroup but I won't
-post it until it shrinks considerably, so for now I'll just divulge
-my provisional title: 'For construct considered harmful in C'.

How about entitling it "Pascal-think inappropriate for C".



More information about the Comp.lang.c mailing list