Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!ukc!edcastle!aiai!richard From: richard@aiai.ed.ac.uk (Richard Tobin) Newsgroups: comp.lang.c Subject: Re: A question of style Message-ID: <1437@skye.ed.ac.uk> Date: 7 Dec 89 19:52:31 GMT References: <1989Nov23.170838.10376@phri.nyu.edu> <680014@hpmwjaa.HP.COM> <11743@smoke.BRL.MIL> Reply-To: richard@aiai.UUCP (Richard Tobin) Organization: AIAI, University of Edinburgh, Scotland Lines: 21 In article <11743@smoke.BRL.MIL> gwyn@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@uk.ac.ed AI Applications Institute, ARPA: R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin