A question of style

Richard Tobin richard at aiai.ed.ac.uk
Fri Dec 8 06:52:31 AEST 1989


In article <11743 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn) writes:

[On the subject of  while (c=getchar(), c!=EOF)]

>With the form you prefer, one has to mentally connect the two occurrences
>of `c' and appreciate that their contents are related.

If you can't do that, then you're not going to get far understanding
*any* program.  The (alleged) added effort in understanding this construct
is surely miniscule in the context of understanding a whole program.

I would have thought that it's common enough to be regarded as a
standard idiom itself.  At least, everyone who reads this newsgroup
should by now be quite sufficiently familiar with it!

-- Richard

-- 
Richard Tobin,                       JANET: R.Tobin at uk.ac.ed             
AI Applications Institute,           ARPA:  R.Tobin%uk.ac.ed at nsfnet-relay.ac.uk
Edinburgh University.                UUCP:  ...!ukc!ed.ac.uk!R.Tobin



More information about the Comp.lang.c mailing list