From owner-freebsd-chat Wed Jan 24 3:24:25 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 7A9BE37B69C for ; Wed, 24 Jan 2001 03:24:06 -0800 (PST) Received: from dungeon.home (ppp12.dyn249.pacific.net.au [203.143.249.12]) by ns5.pacific.net.au (8.9.0/8.9.1) with ESMTP id WAA26666; Wed, 24 Jan 2001 22:24:02 +1100 (EST) Received: from dungeon.home (localhost [127.0.0.1]) by dungeon.home (8.11.1/8.9.3) with ESMTP id f0OBOgm22341; Wed, 24 Jan 2001 21:24:42 +1000 (EST) (envelope-from mckay) Message-Id: <200101241124.f0OBOgm22341@dungeon.home> To: Iain Templeton Cc: chat@freebsd.org, mckay@thehub.com.au Subject: Re: silly C style question References: <20010122230447.S10761@rfx-216-196-73-168.users.reflex> In-Reply-To: from Iain Templeton at "Tue, 23 Jan 2001 07:49:15 +0000" Date: Wed, 24 Jan 2001 21:24:42 +1000 From: Stephen McKay Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tuesday, 23rd January 2001, Iain Templeton wrote: >Wow, that is way too close to our standard C style here... although >we use 4 space tabs... > > if > ( > i > == > 0 > ) > { > foo > ( > i > ); > > bar > ( > i > ); > } > >Although, we only do that for really long lines so they fit within 80ish >characters, or for really complex logical expressions. I didn't like it >at first, but I can see the benefits after having to figure out some >code. Imported from Basser Department of Computer Science, University of Sydney? Piers Lauder was mad keen on this diabolical but extremely logical indenting scheme. Example: if ( (id->id_type == NULL) || ( (id->id_type->x_what == xt_arrayof) && (item->x_left->x_what == xt_arrayof) && (id->id_type->x_subtype == item->x_left->x_subtype) && (id->id_type->x_flags & XIS_DIMLESS) ) ) ... Try that one any other way. :-) Stephen. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message