From owner-freebsd-chat Fri Nov 22 13:45:26 2002 Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7F8037B401 for ; Fri, 22 Nov 2002 13:45:25 -0800 (PST) Received: from HAL9000.homeunix.com (12-232-220-15.client.attbi.com [12.232.220.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9979D43EB3 for ; Fri, 22 Nov 2002 13:45:24 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id gAMLi5m9011094; Fri, 22 Nov 2002 13:44:05 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id gAMLi52N011093; Fri, 22 Nov 2002 13:44:05 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Fri, 22 Nov 2002 13:44:05 -0800 From: David Schultz To: Jonathon McKitrick Cc: freebsd-chat@FreeBSD.ORG Subject: Re: Style(9) question Message-ID: <20021122214405.GA11011@HAL9000.homeunix.com> Mail-Followup-To: Jonathon McKitrick , freebsd-chat@FreeBSD.ORG References: <20021122193040.GA23078@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021122193040.GA23078@dogma.freebsd-uk.eu.org> Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thus spake Jonathon McKitrick : > 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? Your complaint is a specific form of ``I don't like $requirement in the style guide, can we change it?'' Everyone has a list of criticisms like this, and that would be fine if we all had the same set of beliefs about what the One True Style(9) should say. (I, for one, don't agree with your specific quibble.) The present style(9) is a compromise that we can all grudgingly agree on, because it's better than having different styles strewn all over the codebase. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message