Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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