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
Unboxed float tuples
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-11-08 (16:01)
From: Daniel_Bünzli <daniel.buenzli@e...>
Subject: Unboxed float tuples
Tuples and records are represented the same way. However when it comes
to records with only floats fields we get a special unboxed

Why don't we get that for tuples of floats only ?

Using tuples (vs records) to handles points and vectors is
syntactically more lightweight (IMHO). More important it makes it
easier to share that kind of data
between independent modules without introducing new dependencies.
However I don't want to sacrifice the unboxed representation for that.

Is it worth to ask for a feature request ? I guess many people would
be against changing the runtime representation.