From owner-freebsd-current@FreeBSD.ORG Thu Mar 2 09:06:43 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 657F716A420 for ; Thu, 2 Mar 2006 09:06:43 +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 9CD6743D48 for ; Thu, 2 Mar 2006 09:06:42 +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 k2296V9m021716 for ; Thu, 2 Mar 2006 11:06:31 +0200 (EET) (envelope-from dmitry@atlantis.dp.ua) Date: Thu, 2 Mar 2006 11:06:31 +0200 (EET) From: Dmitry Pryanishnikov To: freebsd-current@freebsd.org Message-ID: <20060302105229.P83093@atlantis.atlantis.dp.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: 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 09:06:43 -0000 Hello! I apologize for asking here my question (it should belong to -questions, but the most developers are available here, and I just hope it won't hurt). What's the historical reason of the following style(9) advise: Values in return statements should be enclosed in parentheses. What's the rationale of this? From time to time I see small commits just changing "return foo;" -> "return (foo);". I think the first form is quite natural and not ambiguous. Shouldn't we remove this advise from style(9)? Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE