Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.lang.c Subject: Re: C Indentation Survey Results (long...) Message-ID: <5557@utzoo.UUCP> Date: Tue, 30-Apr-85 19:11:53 EDT Article-I.D.: utzoo.5557 Posted: Tue Apr 30 19:11:53 1985 Date-Received: Tue, 30-Apr-85 19:11:53 EDT References: <9930@brl-tgr.ARPA> <381@busch.UUCP> <5497@utzoo.UUCP> Organization: U of Toronto Zoology Lines: 24 > PS - readability is personal things, and you *will not* convince me that > the K&R format is readable, just as I won't convince you that it isn't. To correct (well, to make a near-hopeless gesture at correcting...) a common misconception: the K&R format is *not* hard to read/use. It is hard to *learn*. Once you make the effort to get used to it, reading it is no problem. I speak from experience here; I thought it was hard to read too, until I was forced to read it for a substantial length of time. Then it was easy. I am not arguing that difficulty of learning isn't a defect, by the way. Just pointing out that the K&R format is being maligned for the wrong thing. I won't go so far as to say "try it, you'll like it"... but I will say "if you try it seriously, you'll find it gets a lot easier". So as to end this on a realistic note... One other vice of the K&R style is that its readability degrades seriously in the presence of violations of the style rules. Any style is more readable when it is followed consistently, of course, but K&R's readability drops especially badly when the author is even a bit sloppy. There are rather too many examples of this in Unix code... -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry