A question of style

Michael T. Sullivan sullivan at aqdata.uucp
Sat Dec 2 10:19:01 AEST 1989


I've been thinking about this comma stuff.  As you may remember, I posted
the example with getchar.  All the responses I've gotten and seen posted
said I should surround the getchar in parens instead.  Why?  Not because
the commas weren't proper but because "most programmers did it that way."
Is that really a good enough reason?  Most C programmers I've encountered
do not use '?:'.  Is that a good enough reason to not use it?  I think not.
Nobody said that my use was ugly, evil, a bad idea, or wrong.  Just that
most people didn't use it.  I'll just keep on using my commas, thank you.
-- 
Michael Sullivan          uunet!jarthur.uucp!aqdata!sullivan
aQdata, Inc.
San Dimas, CA



More information about the Comp.lang.c mailing list