Date: Wed, 24 Jan 2001 21:24:42 +1000 From: Stephen McKay <mckay@thehub.com.au> To: Iain Templeton <iain@research.canon.com.au> Cc: chat@freebsd.org, mckay@thehub.com.au Subject: Re: silly C style question Message-ID: <200101241124.f0OBOgm22341@dungeon.home> In-Reply-To: <Pine.LNX.4.10.10101231845470.12891-100000@blow.research.canon.com.au> from Iain Templeton at "Tue, 23 Jan 2001 07:49:15 %2B0000" References: <20010122230447.S10761@rfx-216-196-73-168.users.reflex> <Pine.LNX.4.10.10101231845470.12891-100000@blow.research.canon.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101241124.f0OBOgm22341>