From owner-freebsd-chat Mon Jan 22 23:15:46 2001 Delivered-To: freebsd-chat@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id C84B837B400 for ; Mon, 22 Jan 2001 23:15:28 -0800 (PST) Received: from rfx-216-196-73-168.users.reflexcom.com ([216.196.73.168]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Mon, 22 Jan 2001 23:02:56 -0800 Received: (from cjc@localhost) by rfx-216-196-73-168.users.reflexcom.com (8.11.1/8.11.0) id f0N74mj37304; Mon, 22 Jan 2001 23:04:48 -0800 (PST) (envelope-from cjc) Date: Mon, 22 Jan 2001 23:04:47 -0800 From: "Crist J. Clark" To: Freddie Cash Cc: freebsd-chat@FreeBSD.ORG Subject: Re: silly C style question Message-ID: <20010122230447.S10761@rfx-216-196-73-168.users.reflex> Reply-To: cjclark@alum.mit.edu References: <20010122170600.D4456@dogma.freebsd-uk.eu.org> <200101221743.f0MHh7I61638@gratis.grondar.za> <3A6C6E80.4535.632D3C1@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3A6C6E80.4535.632D3C1@localhost>; from fcash@bigfoot.com on Mon, Jan 22, 2001 at 05:31:44PM -0800 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Jan 22, 2001 at 05:31:44PM -0800, Freddie Cash wrote: > Bah! If you are worried about screen space and legibility, there's > always the following: > > if (0==i) > { foo(i); > bar(i); > } Everyone knows it should be, if(!i){foo(i);bar(i);} Or, if ( i == 0 ) { foo( i ) ; bar( i ) ; } Or if you like emacs tabbing, if ( i == 0 ) { foo( i ) ; bar( i ) ; } -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message