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,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 discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 56276BC0A for ; Thu, 15 Mar 2007 04:50:53 +0100 (CET) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.179]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2F3oqPW023213 for ; Thu, 15 Mar 2007 04:50:53 +0100 Received: by ik-out-1112.google.com with SMTP id c29so19417ika for ; Wed, 14 Mar 2007 20:50:52 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hooZJ7Hh/MwEx3/ASkNPWDjn17/nnPHq1NASG8ZPCWPSvrq8zUyK39c/5X/+9+kKo1B1uzqmbJJplneJLdq8hFEReMPUmr+rl2kYLef6wkLr/wSn8+yEO4xBPPz1QrV7whA+Kv6U4oz4dcVePA4rIUPK/sauYEMYx/AsBVnLCVM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=L5nKrPb0dE1y3gcBk9sOTahxckzTsdxN2mvufpt/bFYMGhZC0DRpkCNsIdju3ogSXEs999m34AaUGdW7w8ZcsG7r1qpnFsKY3egigcB48NFQmes1Ka3oUty/11hI6/mBDb435HmQzq5OolQ4yZ4wYbLEBOE1qu5e2L5foflS0l0= Received: by 10.115.58.1 with SMTP id l1mr45547wak.1173930651784; Wed, 14 Mar 2007 20:50:51 -0700 (PDT) Received: by 10.114.241.6 with HTTP; Wed, 14 Mar 2007 20:50:51 -0700 (PDT) Message-ID: <875c7e070703142050r20f4960an52d8f5fdba4a97e7@mail.gmail.com> Date: Wed, 14 Mar 2007 22:50:51 -0500 From: "Chris King" To: ian Subject: Re: [Caml-list] Style and organization of code Cc: caml-list@inria.fr In-Reply-To: <875c7e070703142044v2bc61765i3ea00d463a8f77ed@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45F87661.4020504@softhome.net> <875c7e070703142044v2bc61765i3ea00d463a8f77ed@mail.gmail.com> X-j-chkmail-Score: MSGID : 45F8C29C.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 45F8C29C.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; lexer:01 wrote:01 caml-list:01 functions:01 oops:01 argument:02 let:03 overhead:04 i'd:05 chris:06 chris:06 style:93 style:93 bottom:93 likely:08 On 3/14/07, Chris King wrote: > Since the "keywords" argument is needed by the helper functions, it > appears at the top in the let, but "input" isn't and so it was moved > to the bottom in the fun. Oops, on second thought, this was much more likely done to reduce overhead when the function returned by "make_lexer keywords" is used multiple times (which it likely will be). But even if it weren't, that's still the style I'd recommend :)