Date: Tue, 23 Jan 2001 09:13:54 -0600 From: "G. Adam Stanislav" <redprince@redprince.net> To: freebsd-chat@FreeBSD.ORG Subject: Re: C style continued.... (Craig and Terry) Message-ID: <3.0.6.32.20010123091354.009de7c0@mail85.pair.com> In-Reply-To: <3A6D5B2D.F0AEE70C@online.no> References: <Pine.GSO.4.21.0101222145330.6027-100000@zippy.shellyeah.org>
next in thread | previous in thread | raw e-mail | index | archive | help
At 11:21 23-01-2001 +0100, Tore Lund wrote: >Agree, and if it really were a problem, one ought to write: > > if (0 == i) { > foo(i); > bar(i); } Of course, the whole problem with this example is not the formating style, but the unnecessary use of a variable. It should be changed to: if (!i) {foo(0); bar(0);} Cheers, :) Adam --- Whiz Kid Technomagic - brand name computers for less. See http://www.whizkidtech.net/pcwarehouse/ for details. 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?3.0.6.32.20010123091354.009de7c0>