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=1.0 required=5.0 tests=AWL,DNS_FROM_SECURITYSAGE 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 D2747BBAF for ; Thu, 23 Oct 2008 17:24:22 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEALczAEnOe3NG/2dsb2JhbADBQINO X-IronPort-AV: E=Sophos;i="4.33,470,1220220000"; d="scan'208";a="30666211" Received: from spoomusic.com ([206.123.115.70]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 23 Oct 2008 17:24:22 +0200 Received: (qmail 18957 invoked by uid 89); 23 Oct 2008 15:24:20 -0000 Received: from unknown (HELO ?192.168.1.99?) (98.165.129.233) by 0 with ESMTPS (DHE-RSA-AES256-SHA encrypted); 23 Oct 2008 15:24:20 -0000 Message-ID: <490096B8.3020602@ramenlabs.com> Date: Thu, 23 Oct 2008 08:22:32 -0700 From: Dave Benjamin User-Agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: Romain Bardou Cc: Vincent Hanquez , Hugo Ferreira , caml-list caml-list Subject: Re: [Caml-list] What does Jane Street use/want for an IDE? What about you? References: <200810200919.41561.ober.14@osu.edu> <9d3ec8300810211231j40dbbef2ifdd6c2f6b84a2048@mail.gmail.com> <20081021202649.GA11380@philou.ch> <200810220842.17128.ober.14@osu.edu> <49002C0E.5050107@inescporto.pt> <49003554.9050109@lri.fr> <9722eaea0810230313u25b2c874xc94574786e513162@mail.gmail.com> <4900596C.80406@inescporto.pt> <20081023141335.GA521@snarc.org> <49008D7D.4060908@lri.fr> In-Reply-To: <49008D7D.4060908@lri.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; wrote:01 caml-list:01 benjamin:01 parenthesis:02 btw:03 seems:03 tend:03 tend:03 hierarchy:03 let:03 let:03 indentation:04 indentation:04 problem:05 margin:94 Romain Bardou wrote: > let x = List.map (fun z -> > very_long_stuff_blablablablablablablabla) I tend to write this sort of thing as: let x = List.map (fun z -> very_long_stuff_blablablablablablablabla) ... which, as you may notice, still can't be done with tabs alone due to the extra space after the opening parenthesis. I'm curious what you all think of this coding style, which seems on one hand to be excessively... um, vertical? but it does seem to strike a balance between Tuareg's indentation rules and the problem of "running into the margin" too quickly. BTW, If you keep the function on the first line, it's a bit more compact, but the indentation no longer tells the truth about the real hierarchy: let x = List.map (fun z -> very_long_stuff_blablablablablablablabla) ... This is why I tend to put the function on a line of its own as soon as things start to wrap. Dave