[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | skaller <skaller@u...> |
| Subject: | Re: [Caml-list] Polymorphic Variants |
On Tue, 2007-01-16 at 15:23 -0600, Seth J. Fogarty wrote: > OCaml does not, as far as I know, have any structural typing for > records.. Hmm .. Felix does, and it supports subtyping (by explicit coercion). So why doesn't Ocaml have it? Yes, it would be "yet another product type", bringing the total to 4 in Ocaml (tuples, records, structurally typed records and classes). Come to think of it .. aren't classes structurally typed records? -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net