Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2001 11:21:33 +0100
From:      Tore Lund <tl001@online.no>
To:        freebsd-chat@FreeBSD.ORG
Subject:   Re: C style continued.... (Craig and Terry)
Message-ID:  <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
Jonathon McKitrick wrote:
> 
> Craig, you answered my  question by at least legitimizing what I learned
> I like the Allman style, because the braces don't get lost, and because
> the logical loops and forks are readily evident.  And I don't believe the
> screen real estate problem is really an issue any more.

Agree, and if it really were a problem, one ought to write:

    if (0 == i) {
        foo(i);
        bar(i); }

Bingo, two lines saved!  I am not suggesting this in earnest, of course,
but it does seem somewhat inconsistent to collapse the upper blank line
only.
-- 
    Tore



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?3A6D5B2D.F0AEE70C>