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 discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id CD012BC6B for ; Thu, 15 Feb 2007 05:04:12 +0100 (CET) Received: from ptb-relay01.plus.net (ptb-relay01.plus.net [212.159.14.212]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l1F44CKv005333 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 15 Feb 2007 05:04:12 +0100 Received: from [80.229.56.224] (helo=beast.local) by ptb-relay01.plus.net with esmtp (Exim) id 1HHXqt-0004qu-T5 for caml-list@yquem.inria.fr; Thu, 15 Feb 2007 04:04:12 +0000 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Patterns that evaluate Date: Thu, 15 Feb 2007 03:57:35 +0000 User-Agent: KMail/1.9.5 References: <45D23608.4030104@mcmaster.ca> <20070215.092632.112616570.garrigue@math.nagoya-u.ac.jp> In-Reply-To: <20070215.092632.112616570.garrigue@math.nagoya-u.ac.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702150357.36091.jon@ffconsultancy.com> X-Miltered: at discorde with ID 45D3DBBC.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; compilation:01 implements:01 ocaml:01 ocaml:01 26,:98 frog:98 wrote:01 typing:01 preprocessor:01 caml-list:01 macros:01 supported:01 garrigue:03 jacques:03 scheme:05 On Thursday 15 February 2007 00:26, Jacques Garrigue wrote: > As with any extension, an important question with views is whether > they should be in the language, as in F#, or supported by the > preprocessor as you did. After all, pattern-matching in Scheme is > entirely based on macros, and people are perfectly happy with > that. Why is it not the case in ML? Because, thanks to typing, we can > check exhaustivity and overlapping, and use this information to detect > error and optimize compilation. Unfortunately, views do not allow > that... Actually, I believe F# implements that in some form. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. OCaml for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists