Date: Fri, 22 Nov 2002 16:08:08 -0500 (EST) From: John Baldwin <jhb@FreeBSD.org> To: Jonathon McKitrick <jcm@FreeBSD-uk.eu.org> Cc: freebsd-chat@freebsd.org Subject: RE: Style(9) question Message-ID: <XFMail.20021122160808.jhb@FreeBSD.org> In-Reply-To: <20021122193040.GA23078@dogma.freebsd-uk.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. :) -- John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ 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?XFMail.20021122160808.jhb>