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=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 6E72ABC69 for ; Sat, 24 Feb 2007 00:06:30 +0100 (CET) Received: from pih-relay05.plus.net (pih-relay05.plus.net [212.159.14.132]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l1NN6TVk008510 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Sat, 24 Feb 2007 00:06:30 +0100 Received: from [80.229.56.224] (helo=beast.local) by pih-relay05.plus.net with esmtp (Exim) id 1HKjUi-0003H8-Vu for caml-list@yquem.inria.fr; Fri, 23 Feb 2007 23:06:29 +0000 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Case-insensitive lexing Date: Fri, 23 Feb 2007 23:00:07 +0000 User-Agent: KMail/1.9.5 References: <23E977DC-77FF-44A2-8675-5EAA8F61505F@gmail.com> <20070224095152.a9669d3d.mle+ocaml@mega-nerd.com> In-Reply-To: <20070224095152.a9669d3d.mle+ocaml@mega-nerd.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702232300.08359.jon@ffconsultancy.com> X-Miltered: at concorde with ID 45DF7375.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; lexing:01 hashtable:01 hash:01 ocaml:01 ocaml:01 frog:98 wrote:01 caml-list:01 match:02 pattern:04 erik:04 identifiers:04 table:93 rather:08 actually:10 On Friday 23 February 2007 22:51, Erik de Castro Lopo wrote: > Moving all the keywords into a hashtable, and using that to differentiate > between keywords and identifiers actually works very well. I never understood why people use a hash table rather than a pattern match in OCaml. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. OCaml for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists