type a = { i : int; f : float; }
type b = { i : int; }
i've read a few faqs, but none that explains
i remember reading the explanation that ocaml would then have no way to
disambiguate type a and b during type inference, as in:
let c t = t.i
but, why shouldn't type inference be able to handle it, as in:
val c : (a or b) -> int
in other words, since full polymorphism is handled so well in ocaml,
why not "partial polymorphism"?
thanks in advance,
henry