Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site sjuvax.UUCP Path: utzoo!linus!decvax!bellcore!allegra!sjuvax!jss From: jss@sjuvax.UUCP (J. Shapiro) Newsgroups: net.lang.c Subject: Re: Re: C Indentation Survey Results (not long...) Message-ID: <1132@sjuvax.UUCP> Date: Sat, 4-May-85 15:35:30 EDT Article-I.D.: sjuvax.1132 Posted: Sat May 4 15:35:30 1985 Date-Received: Thu, 16-May-85 04:32:57 EDT References: <9930@brl-tgr.ARPA>, <381@busch.UUCP> <5497@utzoo.UUCP>, <5544@utzoo.UUCP> <176@maxvax.UUCP> Organization: St. Joseph's University, Phila. PA. Lines: 26 Hopefully, this will end this sillyness. It is not hard to write a formatter for C. It is especially a property of such a formatter that it will be consistent, and it seems that consistency of style is desirable. I believe that this discussion has from the start confused 'style' with 'format'. If you don't like my code, use M4 or some such to reformat it to your taste. Then your complaints about where to put braces and this, that, or the other thing just don't hold. This is a problem which has been solved many times, and I am sure many people out there could write formatters for the predominant versions of C format that people seem to use. There is something to say for sticking to the K&R format for universality, but that seems to me to be a lesser problem, and certainly not worth a raging battle. On the otyher hand, I have more difficulty with code that is truly obfuscated. Much of the UNIX code, even if formatted as K&R (which happens to be the format I learned) do it, is badly written, poorly commented, and shows a certain sickening twist in the minds of the authors. I am not an OS hacker, and on those occasions when I am obliged to look at UNIX code I am sickened by the lack of clarity of the expression of the thoughts behind the code. This, it seems to me, is the real issue of 'style.' Not formatting style, but rather style of expression.