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 AAA28974; Sun, 26 Sep 2004 00:15:11 +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 AAA29497 for ; Sun, 26 Sep 2004 00:15:10 +0200 (MET DST) Received: from web53007.mail.yahoo.com (web53007.mail.yahoo.com [206.190.39.197]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id i8PMF9uf010410 for ; Sun, 26 Sep 2004 00:15:09 +0200 Message-ID: <20040925221508.89462.qmail@web53007.mail.yahoo.com> Received: from [136.1.1.154] by web53007.mail.yahoo.com via HTTP; Sat, 25 Sep 2004 15:15:08 PDT Date: Sat, 25 Sep 2004 15:15:08 -0700 (PDT) From: Vasili Galchin Subject: Re: [Caml-list] C++ STL and template features compared with OCaml parametric polymorphism and OO features To: Nicolas Cannasse , caml-list@inria.fr In-Reply-To: <000b01c4a348$015cfaa0$19b0e152@warp> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1801561738-1096150508=:89219" X-Miltered: at concorde with ID 4155EDED.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 cannasse:01 warplayer:01 haskell:01 extlib:01 enum:01 sourceforge:01 cannasse:01 warplayer:01 haskell:01 extlib:01 enum:01 sourceforge:01 promotions:99 ocaml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk --0-1801561738-1096150508=:89219 Content-Type: text/plain; charset=us-ascii Thank you, Nicolas! Vasili Nicolas Cannasse wrote: Hello, I am reluctantly learning C++ STL (Standard Template Library) and the notion of templates. Templates don't seem to be that great ... just parametric plymorphism done in a somewhat heavy handed way when compared to the same in OCaml, Haskell, etc. However, teh STL notion of containers and available operations allowed on containers does seem to be be very powerful and not available in OCaml. Is the last statement true? Kind regards, Vasili You might have a look at ExtLib Enum module that is providing an uniform way of accessing elements of a container and applying functionnal lazy operations (map, filter...) on them. http://ocaml-lib.sourceforge.net/ Regards, Nicolas Cannasse --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! --0-1801561738-1096150508=:89219 Content-Type: text/html; charset=us-ascii
Thank you, Nicolas!
 
Vasili

Nicolas Cannasse <warplayer@free.fr> wrote:
Hello,
 
    I am reluctantly learning C++ STL (Standard Template Library) and the notion of templates. Templates don't seem to be that great ... just parametric plymorphism done in a somewhat heavy handed way when compared to the same in OCaml, Haskell, etc. However, teh STL notion of containers and available operations allowed on containers does seem to be be very powerful and not available in OCaml. Is the last statement true?
 
Kind regards, Vasili
You might have a look at ExtLib Enum module that is providing an uniform way of accessing  elements of a container and applying functionnal lazy operations (map, filter...) on them.
 
Regards,
Nicolas Cannasse


Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers! --0-1801561738-1096150508=:89219-- ------------------- 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