Date: Sat, 23 Nov 2002 01:08:04 +0100 From: Cliff Sarginson <cls@raggedclown.net> To: freebsd-chat@freebsd.org Subject: Re: Style(9) question Message-ID: <20021123000804.GA2559@raggedclown.net> In-Reply-To: <XFMail.20021122160808.jhb@FreeBSD.org> References: <20021122193040.GA23078@dogma.freebsd-uk.eu.org> <XFMail.20021122160808.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 22, 2002 at 04:08:08PM -0500, John Baldwin wrote:
>
> On 22-Nov-2002 Jonathon McKitrick wrote:
> >
> > In the standard, it says control statements with only one statement executed
> > should not have braces. I've heard it said that this could be a maintenance
> > issue, since braces will need to be added if any other statements need to
> > be grouped with that condition. Isn't it a good idea to add them the first
> > time the statement is written, rather than counting on a future maintainer
> > to do so?
>
> The reason to not put them in is to avoid wasting screen real-estate
> on mostly blank lines. You also errantly assume that you will always
> come back and add more statements later. :)
>
You could always...
if(pigpoo == VERYSMELLY) { printf("That is what goes to make your bacon\n"); } /* :) */
--
Regards
Cliff Sarginson
The Netherlands
[ This mail has been checked as virus-free ]
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?20021123000804.GA2559>
