From owner-freebsd-chat Fri Jan 26 16:49:35 2001 Delivered-To: freebsd-chat@freebsd.org Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (Postfix) with ESMTP id 3C82537B69D for ; Fri, 26 Jan 2001 16:49:19 -0800 (PST) Received: (from daemon@localhost) by smtp03.primenet.com (8.9.3/8.9.3) id RAA21758; Fri, 26 Jan 2001 17:46:29 -0700 (MST) Received: from usr01.primenet.com(206.165.6.201) via SMTP by smtp03.primenet.com, id smtpdAAAfEaqzQ; Fri Jan 26 17:46:20 2001 Received: (from tlambert@localhost) by usr01.primenet.com (8.8.5/8.8.5) id RAA09818; Fri, 26 Jan 2001 17:49:02 -0700 (MST) From: Terry Lambert Message-Id: <200101270049.RAA09818@usr01.primenet.com> Subject: Re: silly C style question To: mckay@thehub.com.au (Stephen McKay) Date: Sat, 27 Jan 2001 00:48:57 +0000 (GMT) Cc: jgrosch@mooseriver.com, tlambert@primenet.com (Terry Lambert), iain@research.canon.com.au (Iain Templeton), chat@FreeBSD.ORG, mckay@thehub.com.au In-Reply-To: <200101260530.f0Q5UwF18441@dungeon.home> from "Stephen McKay" at Jan 26, 2001 03:30:58 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > >> [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. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message