From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946860AbXD3WY2 (ORCPT ); Mon, 30 Apr 2007 18:24:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1946861AbXD3WY2 (ORCPT ); Mon, 30 Apr 2007 18:24:28 -0400 Received: from einhorn.in-berlin.de ([192.109.42.8]:58894 "EHLO einhorn.in-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946860AbXD3WY1 (ORCPT ); Mon, 30 Apr 2007 18:24:27 -0400 X-Envelope-From: stefanr@s5r6.in-berlin.de Message-ID: <46366B36.70906@s5r6.in-berlin.de> Date: Tue, 01 May 2007 00:18:30 +0200 From: Stefan Richter User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070408 SeaMonkey/1.1.1 MIME-Version: 1.0 To: Satyam Sharma CC: Andrew Morton , Christoph Hellwig , Roland McGrath , Christoph Hellwig , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: condingstyle, was Re: utrace comments References: <20061127165138.GA2991@lst.de> <20070430040213.BF9901801A4@magilla.sf.frob.com> <20070430091121.GC31397@infradead.org> <20070430100917.439ebfc8.akpm@linux-foundation.org> In-Reply-To: X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Satyam Sharma wrote: [...] > The rationale is to make the operator prominent and thus make > the structure of a complex multi-line compound conditional expression more > readable and obvious at first glance itself. For example, consider: > > if (veryverylengthycondition1 && > smallcond2 && > (conditionnumber3a || > condition3b)) { > ... > } > > versus > > if (veryverylengthycondition1 > && smallcond2 > && (conditionnumber3a > || condition3b)) { > ... > } > > ? > > Latter wins, doesn't it? I find the latter more sensible too, even though I used the former myself until recently (because I didn't knew better). -- Stefan Richter -=====-=-=== -=-= ----= http://arcgraph.de/sr/