Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!uw-beaver!teknowledge-vaxc!sri-unix!quintus!ok From: ok@quintus.uucp (Richard A. O'Keefe) Newsgroups: comp.unix.wizards Subject: Re: Latest indent request Message-ID: <810@quintus.UUCP> Date: 5 Dec 88 06:21:54 GMT References: <17680@adm.BRL.MIL> <1748@solo3.cs.vu.nl> <9063@smoke.BRL.MIL> Sender: news@quintus.UUCP Reply-To: ok@quintus.UUCP (Richard A. O'Keefe) Organization: Quintus Computer Systems, Inc. Lines: 26 In article <9063@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn (VLD/VMB)) writes: >In article <1748@solo3.cs.vu.nl> maart@cs.vu.nl (Maarten Litmaath) writes: >>gaspar@almsa-1.arpa (Al Gaspar) writes: >>\ if (test) >>\ { >>\ whatever; >>\ } >>What a DISGUSTING format! > >Most programmers I know that have tried vertical alignment of braces >for a while have come to prefer that to the style in K&R. I have to agree with Maarten Litmaath. I suggest that people who care about layout in their programs should read Professional Software Volume II Programming Practice Henry Ledguard with John Tauer Addison-Wesley 1987 The use of braces in C is discussed on pages 111 and 117. I use the "comb" style of layout (Ledgard's preference) because it makes sense in all the languages I use. Ledgard is no more God than Henry Spencer, but I need a good reason to disagree with either of them.