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.6 required=5.0 tests=AWL,DNS_FROM_RFC_POST, DNS_FROM_SECURITYSAGE,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id A8043BB84 for ; Sun, 26 Oct 2008 17:23:53 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AusAALo2BElIDtyekGdsb2JhbACTPT4BAQEBCQkMBxEDpSGGFwEDAQODTIIC X-IronPort-AV: E=Sophos;i="4.33,489,1220220000"; d="scan'208";a="16509518" Received: from fg-out-1718.google.com ([72.14.220.158]) by mail2-smtp-roc.national.inria.fr with ESMTP; 26 Oct 2008 17:23:53 +0100 Received: by fg-out-1718.google.com with SMTP id l27so1503765fgb.43 for ; Sun, 26 Oct 2008 09:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer:sender; bh=V7HMMT7prLYIvIiRg/bkRyh28UG7o0lurAjcmMixGu8=; b=ca+e7fEWv1eFBxcmhUjYra1+ICjTGiZ4KyzLt11WPC0ltQngJsIxJ734s7AMWYSPXz oyxPjFSF3UISnkmmT0VrT51pFYNJ15QTvuXnjzwQJNCwxcQrHX5PfQzeVWhvTghzhWcD 3Tgce/q99/MqM26q1prrXq8puw3BhhLXhqK8Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer:sender; b=Z1fMHEwHcQh+pRQxmuC6InEIx1svnvJ/nK85jcpcOMyAvdPFwtQHyIgX6DF0n0KcAi 9X54EJUCTnS31O971i6oDBxHgUINxClC04NNsab5v2H2ZFki72YkHsq/DCUDscPIaaZS PX6r1ZKblQDuaMFC9l8ykW0fcK6MrJPzfsmq0= Received: by 10.86.59.2 with SMTP id h2mr2299206fga.30.1225038233183; Sun, 26 Oct 2008 09:23:53 -0700 (PDT) Received: from ?10.0.1.2? (106-96.0-85.cust.bluewin.ch [85.0.96.106]) by mx.google.com with ESMTPS id 3sm4507541fge.3.2008.10.26.09.23.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 26 Oct 2008 09:23:52 -0700 (PDT) Message-Id: <093FC693-92FB-4C62-82DF-4FAD8F5E4D65@erratique.ch> From: =?ISO-8859-1?Q?Daniel_B=FCnzli?= To: caml-list caml-list In-Reply-To: <4903A6F0.5000303@ens-lyon.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: Indentation (was Re: [Caml-list] What does Jane Street use/want for an IDE? What about you?) Date: Sun, 26 Oct 2008 17:23:26 +0100 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> <490096B8.3020602@ramenlabs.com> <4902F183.5060504@doomeer.com> <4903145E.5050904@ens-lyon.org> <483673C5-ED3C-4877-AC85-D89E1CA6A1D2@erratique.ch> <4903A6F0.5000303@ens-lyon.org> X-Mailer: Apple Mail (2.929.2) Sender: =?UTF-8?B?RGFuaWVsIELDvG56bGk=?= X-Spam: no; 0.00; bunzli:01 buenzli:01 afaik:01 closures:01 naming:01 naming:01 caml-list:01 functions:01 imperative:01 jambon:01 indentation:04 daniel:04 daniel:04 ecrit:06 cases:08 Le 26 oct. 08 =E0 01:08, Martin Jambon a =E9crit : > In performance-critical code or maybe imperative code in general, it > feels good to control when closures are created. In such cases, =20 > avoiding > local functions helps. Just to be clear, naming your anonymous function locally (which is =20 what is recommended) or not naming it doesn't make any performance =20 difference AFAIK. Daniel