From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 5A0B8BB9A for ; Fri, 28 Oct 2005 23:17:02 +0200 (CEST) Received: from pih-relay05.plus.net (pih-relay05.plus.net [212.159.14.132]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j9SLH1SU031617 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 28 Oct 2005 23:17:02 +0200 Received: from [80.229.56.224] (helo=chetara) by pih-relay05.plus.net with esmtp (Exim) id 1EVbav-0005AM-Fd for caml-list@yquem.inria.fr; Fri, 28 Oct 2005 22:17:01 +0100 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Objective Caml 3.09 released Date: Fri, 28 Oct 2005 22:12:47 +0100 User-Agent: KMail/1.7.2 References: <4360E32F.1060905@inria.fr> <4361A431.9010508@cs.caltech.edu> <3ADF9856-A290-4EE1-B228-1AC406A85979@inria.fr> In-Reply-To: <3ADF9856-A290-4EE1-B228-1AC406A85979@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510282212.47634.jon@ffconsultancy.com> X-Miltered: at concorde with ID 4362954D.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 damien:01 bindings:01 ocaml:01 2005,:98 ...:98 frog:98 wrote:01 wrote:01 doligez:01 patterns:02 caml:02 caml:02 match:02 objective:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On Friday 28 October 2005 20:14, Damien Doligez wrote: > On Oct 28, 2005, at 06:08, Aleksey Nogin wrote: > > AFAIU, there are two warnings - "Y" for variables bound with let > > and "Z" for variables bound by pattern matching. By default, Y is > > enabled and Z is not. > > The rules for Y are a bit complex. They are designed to match our style > of programming, where we sometimes document patterns by giving names to > all the arguments, even if they are unused. > ... An alternative solution might be to highlight unused pattern bindings in the editor? -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists