Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jan 2001 12:07:11 -0500 (EST)
From:      Jonathon McKitrick <jcm@shellyeah.org>
To:        Stephen McKay <mckay@thehub.com.au>
Cc:        "Matthew D. Fuller" <fullermd@futuresouth.com>, j mckitrick <jcm@FreeBSD-uk.eu.org>, chat@FreeBSD.ORG
Subject:   Re: silly C style question 
Message-ID:  <Pine.GSO.4.21.0101251203570.24119-100000@zippy.shellyeah.org>
In-Reply-To: <200101241116.f0OBGYm22317@dungeon.home>

next in thread | previous in thread | raw e-mail | index | archive | help
> >> Use neither of these!  Use:
> >> 
> >> if (i == 0)
> >>     {
> >>     foo(i);
> >>     bar(i);
> >>     }
> Go on!  Give it a go!  It grows on you.  And it's logical too.  Just
> think of the language components like a parser would and group logical
> units together.

I see your point, but not indenting the brace saves a keystroke, and that
can add up.  Also, following the column straight down from the 'if' or
other conditional takes you directly to where the execution path
continues.  I  like that better than just following the indentation.

jcm




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?Pine.GSO.4.21.0101251203570.24119-100000>