Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754168AbXEAPG3 (ORCPT ); Tue, 1 May 2007 11:06:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754153AbXEAPG2 (ORCPT ); Tue, 1 May 2007 11:06:28 -0400 Received: from seahorse.shentel.net ([204.111.1.244]:33501 "EHLO seahorse.shentel.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754168AbXEAPG1 (ORCPT ); Tue, 1 May 2007 11:06:27 -0400 Date: Tue, 1 May 2007 11:00:17 -0400 (EDT) From: "John Anthony Kazos Jr." To: David Woodhouse cc: 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 In-Reply-To: <1178028973.2875.78.camel@pmac.infradead.org> Message-ID: 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> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1051 Lines: 32 > > if (veryverylengthycondition1 && > > smallcond2 && > > (conditionnumber3a || > > condition3b)) { > > ... > > } > > It's horrid. I'd much rather see > > if (veryverylengthycondition1 && > smallcond2 && > (conditionnumber3a || condition3b)) { > ... > } if (veryverylengthycondition1 && smallcond2 && (conditionnumber3a || condition3b)) { ... } Clear, crisp, and 80-wide. I also like how the logical operator on the following line is indented slightly into the condition of the previous line. I think this is much more sensical and sensible than using spaces to line them up with the parentheses. Makes clear for each operator the condition to which it applies. - 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/