From owner-freebsd-current@FreeBSD.ORG Thu Mar 2 18:58:53 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B46816A423; Thu, 2 Mar 2006 18:58:53 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 602F243D48; Thu, 2 Mar 2006 18:58:52 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id k22IwgVl067596; Thu, 2 Mar 2006 20:58:42 +0200 (EET) (envelope-from dmitry@atlantis.dp.ua) Date: Thu, 2 Mar 2006 20:58:42 +0200 (EET) From: Dmitry Pryanishnikov To: Colin Percival In-Reply-To: <4407226D.3050901@freebsd.org> Message-ID: <20060302204103.W46260@atlantis.atlantis.dp.ua> References: <20060302105229.P83093@atlantis.atlantis.dp.ua> <20060302163633.H77029@fledge.watson.org> <4407226D.3050901@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org, Robert Watson Subject: Re: style(9) question X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Mar 2006 18:58:53 -0000 Hello! On Thu, 2 Mar 2006, Colin Percival wrote: >> I can't really think of a good reason >> for return (foo) over return foo > > I'm not sure if this qualifies as a *good* reason, but > writing "return (foo)" is more consistent with other > keyword usage: "if (foo)", "for (foo)", "while (foo)", > "switch (foo)". OTOH, our style doesn't recommend parentheses after "case" and type names; indeed, int (i); extern char (j); case ('1'): looks ugly despite being perfectly legal (at least from GCC's POV). Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE