From owner-freebsd-chat Sat Jan 27 21: 3:53 2001 Delivered-To: freebsd-chat@freebsd.org Received: from ns5.pacific.net.au (ns5.pacific.net.au [203.143.252.30]) by hub.freebsd.org (Postfix) with ESMTP id 4681437B400 for ; Sat, 27 Jan 2001 21:03:36 -0800 (PST) Received: from dungeon.home (ppp177.dyn250.pacific.net.au [203.143.250.177]) by ns5.pacific.net.au (8.9.0/8.9.1) with ESMTP id QAA21824; Sun, 28 Jan 2001 16:03:33 +1100 (EST) Received: from dungeon.home (localhost [127.0.0.1]) by dungeon.home (8.11.1/8.9.3) with ESMTP id f0S548c11925; Sun, 28 Jan 2001 15:04:08 +1000 (EST) (envelope-from mckay) Message-Id: <200101280504.f0S548c11925@dungeon.home> To: Terry Lambert Cc: chat@FreeBSD.ORG, mckay@thehub.com.au Subject: Re: silly C style question References: <200101270049.RAA09818@usr01.primenet.com> In-Reply-To: <200101270049.RAA09818@usr01.primenet.com> from Terry Lambert at "Sat, 27 Jan 2001 00:48:57 +0000" Date: Sun, 28 Jan 2001 15:04:08 +1000 From: Stephen McKay Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Saturday, 27th January 2001, Terry Lambert wrote: >> >> [Terry's compact format] >> > >> > [Josef's compact format] >> >> But neither of the compact formats can be easily read. To be certain >> what it they are doing, you have to laboriously trace the brackets, or >> hop about in them using vi's % operator. I admit I write all of mine in >> such a compact style, but always wonder what it would be like to get >> away with the clear but hugely "wasteful" of vertical space Basser format. >> I can't imagine such a format lasting long in a commit to /sys/anything >> around here. ;-) > >I think that the compact form is significantly easier to read. It >lets a reader compute the result of a subexpression, and then ignore >everything at that indentation level, basd on a single result. It was fun going a few rounds of the old Indenting Wars, but it's reached the inevitable end. I'm claiming readability for the verbose Basser format while you are claiming the same readability advantage for your format (using exactly the same argument I use to support the Basser format but somehow ending up favouring your format). The only option now is fisticuffs, and I'm no good at that. I'll go back to coding in K&R (and worse) to match work coding standards, and we'll meet back here for another argument, say, this time next year, or perhaps the year after. Cheers, Stephen. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message