Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754949AbXEBJdh (ORCPT ); Wed, 2 May 2007 05:33:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754953AbXEBJdh (ORCPT ); Wed, 2 May 2007 05:33:37 -0400 Received: from mx1.redhat.com ([66.187.233.31]:50778 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754949AbXEBJdg (ORCPT ); Wed, 2 May 2007 05:33:36 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Directors: Michael Cunningham (USA), Charlie Peters (USA) and David Owens (Ireland) From: David Howells In-Reply-To: References: <20061127165138.GA2991@lst.de> <20070430040213.BF9901801A4@magilla.sf.frob.com> <20070430091121.GC31397@infradead.org> <20070430100917.439ebfc8.akpm@linux-foundation.org> <1178028973.2875.78.camel@pmac.infradead.org> <9185.1178035627@redhat.com> To: ebiederm@xmission.com (Eric W. Biederman) Cc: "John Anthony Kazos Jr." , David Woodhouse , Geert Uytterhoeven , Satyam Sharma , 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 X-Mailer: MH-E 8.0; nmh 1.1; GNU Emacs 22.0.50 Date: Wed, 02 May 2007 10:32:51 +0100 Message-ID: <24844.1178098371@redhat.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 950 Lines: 35 Eric W. Biederman wrote: > Not lining up with the code following the if statement is also > a plus. Because it clearly delineates the conditions from the code. But the condition doesn't line up with the code: if (veryverylengthycondition1 && smallcond2 && (conditionnumber3a || condition3b)) { this_is_some_code(); this_is_some_more_code(); } Personally, for complicated conditions like this, I prefer: if (veryverylengthycondition1 && smallcond2 && (conditionnumber3a || condition3b) ) { this_is_some_code(); this_is_some_more_code(); } But that seems to offend Andrew for some reason (or was it Christoph? or both?). David - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/