English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] extensible records again
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-03-22 (03:34)
From: skaller <skaller@u...>
Subject: Re: [Caml-list] extensible records again
On Mon, 2004-03-22 at 09:35, Michael Vanier wrote:

> Is the code for Vyper still available?

No, it was deleted from Sourceforge and I have no copy.

> Also, is there really any significant speed difference between polymorphic
> variants and regular variants?  

It is hard to say, but I would tend to ignore the performance
issue, at least at first. For some types such as:

	'a option

where you have a

	match x with Some y -> ... | None 

inside a tight loop there may be a small difference.
I haven't done any serious performance tests though.

> How would this compare to using exceptions
> as an extensible variant type?

I thought exceptions were just a weak form of
polymorhic variant.

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