From owner-freebsd-chat Fri Nov 22 16: 8:18 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 6319337B401 for ; Fri, 22 Nov 2002 16:08:17 -0800 (PST) Received: from post-21.mail.nl.demon.net (post-21.mail.nl.demon.net [194.159.73.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7929843EAA for ; Fri, 22 Nov 2002 16:08:16 -0800 (PST) (envelope-from cls@raggedclown.net) Received: from [212.238.197.102] (helo=mailhost.raggedclown.net) by post-21.mail.nl.demon.net with esmtp (Exim 3.36 #1) id 18FNqJ-00091F-00 for freebsd-chat@freebsd.org; Sat, 23 Nov 2002 00:08:15 +0000 Received: from localhost (localhost [127.0.0.1]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id A65DA832A for ; Sat, 23 Nov 2002 01:08:14 +0100 (CET) Received: from willow.raggedclown.net (willow.raggedclown.intra [192.168.1.10]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id 2D8261854 for ; Sat, 23 Nov 2002 01:08:04 +0100 (CET) Received: by willow.raggedclown.net (Ragged Clown Host [willow], from userid 1009) id 8A44B225F7; Sat, 23 Nov 2002 01:08:04 +0100 (CET) Date: Sat, 23 Nov 2002 01:08:04 +0100 From: Cliff Sarginson To: freebsd-chat@freebsd.org Subject: Re: Style(9) question Message-ID: <20021123000804.GA2559@raggedclown.net> 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: User-Agent: Mutt/1.5.1i X-Virus-Scanned: by AMaViS 0.3.12pre8 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 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