Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] C++ STL and template features compared with OCaml parametric polymorphism and OO features
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: skaller <skaller@u...>
Subject: Re: [Caml-list] Factoring HOFs [was Re: C++ STL...]
On Thu, 2004-09-30 at 20:13, Keith Wansbrough wrote:

> but OCaml doesn't allow nested quantifiers (i.e., higher-rank
> polymorphism).
> 
> It actually wouldn't be very hard to support, if you're prepared to
> accept the need for the occasional type annotation

I doubt there is a problem with that. I use polymorphic 
variants and occasionally you need not just annotations,
but to actually write full coercions. This is a small
price to pay.

-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net



-------------------
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