From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA17430; Mon, 11 Aug 2003 20:11:26 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA13972 for ; Mon, 11 Aug 2003 20:11:22 +0200 (MET DST) Received: from remt19.cluster1.charter.net (remt19.cluster1.charter.net [209.225.8.29]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h7BIBMf05711 for ; Mon, 11 Aug 2003 20:11:22 +0200 (MET DST) Received: from [68.185.42.53] (HELO 1969.ws) by remt19.cluster1.charter.net (CommuniGate Pro SMTP 4.0.6) with ESMTP id 119426908; Mon, 11 Aug 2003 14:11:20 -0400 Message-ID: <3F37DCC6.3090201@1969.ws> Date: Mon, 11 Aug 2003 11:13:26 -0700 From: Karl Zilles Organization: 1969 Communications, Inc. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Karl Zilles CC: skaller@ozemail.com.au, Oleg Trott , caml-list@inria.fr Subject: Re: [Caml-list] tpyping question References: <1060564412.7474.11.camel@localhost.localdomain> <200308102251.57305.oleg_trott@columbia.edu> <1060576786.9476.31.camel@localhost.localdomain> <3F37271A.60005@1969.ws> In-Reply-To: <3F37271A.60005@1969.ws> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 match:02 wrote:03 let:04 fails:07 something:09 write:14 question:25 karl:71 wouldn't:30 different:32 ...:36 with:37 more:46 deal:47 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Karl Zilles wrote: > > Wouldn't it be more natural to write: > > let f x = > let (i,j) = match x with > | `A v -> v > | `B u -> (u,0) in > ... Nevermind, this fails to deal with | `C -> do something different ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners