From owner-freebsd-chat@FreeBSD.ORG Wed Apr 15 15:43:28 2009 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8BE4106566C for ; Wed, 15 Apr 2009 15:43:28 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.freebsd.org (Postfix) with ESMTP id 20A828FC15 for ; Wed, 15 Apr 2009 15:43:28 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from mail.ceid.upatras.gr (unknown [10.1.0.143]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 4CB3FEB5A7D; Wed, 15 Apr 2009 18:13:57 +0300 (EEST) Received: from localhost (europa.ceid.upatras.gr [127.0.0.1]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 3EC68450C6; Wed, 15 Apr 2009 18:13:57 +0300 (EEST) X-Virus-Scanned: amavisd-new at ceid.upatras.gr Received: from mail.ceid.upatras.gr ([127.0.0.1]) by localhost (europa.ceid.upatras.gr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xeHdHnUBYvH1; Wed, 15 Apr 2009 18:13:57 +0300 (EEST) Received: from kobe.laptop (adsl167-129.kln.forthnet.gr [62.1.146.129]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 0F9AE4503F; Wed, 15 Apr 2009 18:13:57 +0300 (EEST) Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id n3FFDuvC022243; Wed, 15 Apr 2009 18:13:56 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id n3FFDsaK022235; Wed, 15 Apr 2009 18:13:54 +0300 (EEST) (envelope-from keramida@freebsd.org) From: Giorgos Keramidas To: "Matthew D. Fuller" References: <49E2FBE2.8020305@gmail.com> <20090413140912.GC29833@Grumpy.DynDNS.org> <49E51B42.2060405@gmail.com> <320BA0A7-C5E0-40E5-97F9-F19BF1C61B29@hiwaay.net> <49E5670C.8070708@gmail.com> <87bpqytmc7.fsf@kobe.laptop> <20090415145605.GO40689@over-yonder.net> Date: Wed, 15 Apr 2009 18:13:54 +0300 In-Reply-To: <20090415145605.GO40689@over-yonder.net> (Matthew D. Fuller's message of "Wed, 15 Apr 2009 09:56:05 -0500") Message-ID: <87zleiar0t.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-chat@freebsd.org Subject: Re: My whitespace style X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2009 15:43:29 -0000 On Wed, 15 Apr 2009 09:56:05 -0500, "Matthew D. Fuller" wrote: > On Wed, Apr 15, 2009 at 10:20:08AM +0300 I heard the voice of > Giorgos Keramidas, and lo! it spake thus: >> >> switch (value) { >> case SOME_CONSTANT_NAME: do_stuff_here(); break; >> case ANOTHER_CONSTANT_NAME: do_some_other_stuff(); break; >> default: default_stuff(); break; >> } > > ^^^^^^^^^ ^^^^^^^^^ > This is This is > indentation alignment > > >> Composite structure initializations also use a style similar to >> this, and will almost invariably end up looking horrendously >> misformatted when TAB sizes are 'elastic', i.e.: > > Only if you abuse tabs for alignment. Indentation is not alignment. > It's a pity that the two get conflated and everybody ends up treating > them the same, so that advocating tab indentation is read as > advocating tab alignment (even by proponents of tab indentation). True :) Most of the stuff I see aligned this way falls in one of two styles: a) Code that uses spaces both for indentation and alignment. b) Code that uses TABs only for both. The second sort of code is the one that ends up looking terrible when someone configures their editor to use a non-standard TAB size :)