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
Question on writing efficient Ocaml.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-12-28 (17:13)
From: skaller <skaller@u...>
Subject: Re: [Caml-list] Question on writing efficient Ocaml.
On Thu, 2006-12-28 at 16:26 +0000, Jon Harrop wrote:

> The code is also needlessly verbose and inefficient. There's no point in 
> declaring sum types with one contructor:
> type posn = Posn of int * int;;

Doesn't Ocaml optimise the constructor away in this case?

John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net