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 9B03CBC2F for ; Mon, 29 Nov 2004 18:10:48 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iATHAmK1023365 for ; Mon, 29 Nov 2004 18:10:48 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA02890 for ; Mon, 29 Nov 2004 18:10:47 +0100 (MET) Received: from post.bourget.univ-savoie.fr (post.bourget.univ-savoie.fr [193.48.120.73]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iATHAloW024678 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 29 Nov 2004 18:10:47 +0100 Received: from [193.48.123.85] (d85.lama.univ-savoie.fr [193.48.123.85]) by post.bourget.univ-savoie.fr (8.12.3/jtpda-5.4) with ESMTP id iATHAXOb008195 ; Mon, 29 Nov 2004 18:10:33 +0100 Message-ID: <41AB5819.2020206@univ-savoie.fr> Date: Mon, 29 Nov 2004 18:10:49 +0100 From: Christophe Raffalli User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040804 X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: partial match in let X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig07BAB5E510951FB8B2930A5E" Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) X-Miltered: at concorde with ID 41AB5818.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 41AB5817.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; christophe:01 raffalli:01 christophe:01 raffalli:01 univ-savoie:01 foo:01 foo:01 usefull:01 chablais:01 73376:01 univ-savoie:01 lama:01 assert:01 partial:01 partial:01 X-Attachments: type="application/pgp-signature" name="signature.asc" name="signature.asc" X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig07BAB5E510951FB8B2930A5E Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Wish: I had like a way to avoid the partial match warning in code like let [x;y] = f (x) in foo Because if foo is long writing match f(x) with [x;y] -> foo | _ -> assert false is really ennoying, especially if you have a long sequence of let. I find usefull the partial match warning for match and function but not for let (if you write a let, I think you are aware that your matching will be partial for any data type with more than one constructor, you do not need a warning) -- Christophe Raffalli Université de Savoie Batiment Le Chablais, bureau 21 73376 Le Bourget-du-Lac Cedex tél: (33) 4 79 75 81 03 fax: (33) 4 79 75 87 42 mail: Christophe.Raffalli@univ-savoie.fr www: http://www.lama.univ-savoie.fr/~RAFFALLI --------------------------------------------- IMPORTANT: this mail is signed using PGP/MIME At least Enigmail/Mozilla, mutt or evolution can check this signature. The public key is stored on www.keyserver.net --------------------------------------------- --------------enig07BAB5E510951FB8B2930A5E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFBq1gZSQDyWB/+xBwRAoVCAKCx95W2oIa8gmAd6rgpG4F9PL3u7wCeL4oO U1bGqYipzOL6+LVwgRtnxIM= =vwts -----END PGP SIGNATURE----- --------------enig07BAB5E510951FB8B2930A5E--