From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: ** X-Spam-Status: No, score=2.3 required=5.0 tests=AWL,DNS_FROM_RFC_ABUSE, DNS_FROM_SECURITYSAGE,SPF_NEUTRAL,SUBJECT_EXCESS_QP autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id CC7DABBAF for ; Thu, 23 Oct 2008 19:20:31 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah8BAKdOAElDWxLCbmdsb2JhbACBdpF7PqYehjpcg04 X-IronPort-AV: E=Sophos;i="4.33,471,1220220000"; d="scan'208";a="30670553" Received: from ip67-91-18-194.z18-91-67.customer.algx.net (HELO server1.bertec.net) ([67.91.18.194]) by mail4-smtp-sop.national.inria.fr with ESMTP; 23 Oct 2008 19:20:31 +0200 Received: from kuba.bertec.net (kuba.bertec.net [192.168.2.16]) by server1.bertec.net (Postfix) with ESMTP id E67B1105762 for ; Thu, 23 Oct 2008 13:20:29 -0400 (EDT) From: Kuba Ober To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] What does Jane Street use/want for an IDE? =?iso-8859-1?q?What=09about?= you? Date: Thu, 23 Oct 2008 13:20:27 -0400 User-Agent: KMail/1.9.10 References: <200810200919.41561.ober.14@osu.edu> <4900596C.80406@inescporto.pt> <20081023141335.GA521@snarc.org> In-Reply-To: <20081023141335.GA521@snarc.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810231320.29172.ober.14@osu.edu> X-Spam: no; 0.00; 0100,:01 alignment:01 orthogonal:01 cheers:01 23,:98 wrote:01 wrote:01 caml-list:01 diff:02 arbitrary:02 consistent:02 patches:03 indentation:04 indentation:04 expressions:04 On Thursday 23 October 2008, Vincent Hanquez wrote: > On Thu, Oct 23, 2008 at 12:01:00PM +0100, Hugo Ferreira wrote: > > Thomas Gazagnaire wrote: > >> I would prefer to not have an editor which modify completely the file I > >> am working on (ie. automatically replace tab by spaces). When working > >> on big project, you cannot assume that everybody use spaces-based > >> editor, and you still want to minimize the diff size of your patches. > > > > That is the whole issue. If you work in a big project wherein everyone > > can you use their own "tab length", maintaining consistent indentation > > is difficult (if not impossible). As Romain Bardou pointed out, you > > can even use the same editors with differing "tab length". Real messy. > > tab has no length. projects tab-indented (not talking about alignment > here), is the only consistant choice that permit everyone in this same > project to use any *representation* they want for their indentation (8 > spaces, 2 spaces, 4 spaces, 11 spaces, ...) without making a mess. Exactly, and that's why indentation in-between statements/expressions can use tabs with arbitrary length, but indentation within statements/ expressions (split between lines) has to copy previous line's indentation up to the starting column, and then use solely spaces. Same goes for indentation of comments that follow a non-blank line (can only use spaces). There are several orthogonal issues here, all are well known, so please let's not prolong this thread ;) Cheers, Kuba