caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] ocaml internal representation
@ 2003-03-13 14:32 Jakob Lichtenberg
  2003-03-13 16:45 ` Xavier Leroy
  0 siblings, 1 reply; 2+ messages in thread
From: Jakob Lichtenberg @ 2003-03-13 14:32 UTC (permalink / raw)
  To: caml-list

In O'Caml the types are compiled away, right?

Then, is there actually a performance/memory overhead in replacing:
  type coord = int * int

with:
  type coord = Coord of (int * int)


Is it recognized as a 'reasonable' way to get the type system to help me not
mixing up stuff (except for signatures of course)?


Slightly more general:  Did I miss any doc. about this in the O'Caml manual?

Thanks,

- Jakob Lichtenberg

--
Jakob Lichtenberg - jl@itu.dk - http://www.itu.dk/people/jl/

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-13 16:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-13 14:32 [Caml-list] ocaml internal representation Jakob Lichtenberg
2003-03-13 16:45 ` Xavier Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).