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 XAA17018; Mon, 27 Sep 2004 23:11:25 +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 XAA14491 for ; Mon, 27 Sep 2004 23:11:24 +0200 (MET DST) Received: from mailfe02.swip.net (mailfe02.swip.net [212.247.154.33]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i8RLBNw4007819 for ; Mon, 27 Sep 2004 23:11:23 +0200 X-T2-Posting-ID: 2IIuXFmkcTpj3lKEFKW25A== Received: from [83.176.163.74] (HELO poincare) by mailfe02.swip.net (CommuniGate Pro SMTP 4.2.1) with ESMTP id 175995009; Mon, 27 Sep 2004 23:11:22 +0200 Received: from poincare ([127.0.0.1] helo=localhost ident=trch) by poincare with esmtp (Exim 3.36 #1 (Debian)) id 1CC2mE-0004nN-00; Mon, 27 Sep 2004 23:11:18 +0200 Date: Mon, 27 Sep 2004 23:11:16 +0200 (CEST) Message-Id: <20040927.231116.111711448.debian00@tiscali.be> To: jgoerzen@complete.org Cc: "O'Caml Mailing List" Subject: Re: [Caml-list] Observations on OCaml vs. Haskell From: Christophe TROESTLER In-Reply-To: <200409271408.51872.jgoerzen@complete.org> References: <200409271408.51872.jgoerzen@complete.org> Organization: None X-Spook: BRLO Bellcore Armani Consul quarter Nazi cracking Ft. Bragg crypto anarchy AUTODIN X-Blessing: Om Ah Hum Vajra Guru Pema Siddhi Hum X-Operating-System: GNU/Linux (http://www.linux.org/) X-Mailer-URL: http://www.mew.org/ X-Mailer: Mew version 4.0.68 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 415881FB.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 observations:01 haskell:01 troestler:01 tiscali:99 32,:01 functorial:01 chris:01 christophe:01 ocaml:01 int:01 int:01 sep:01 float:02 wrote:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, 27 Sep 2004, John Goerzen wrote: > > I've written several functions that can work with a "number-like" type. > I don't really care if I get an integer, Int32, Int64, float, or what. You can do that with a functorial approach (and if you care about performance, there is a defunctorizer -- not sure it is updated for 3.08 though). Cheers, ChriS ------------------- 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