caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* "OCaml gives you only monomorphic methods in classes."
@ 2007-12-28 23:37 Jon Harrop
  2007-12-28 23:55 ` [Caml-list] " Gordon Henriksen
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Jon Harrop @ 2007-12-28 23:37 UTC (permalink / raw)
  To: caml-list


I just read this quote and I do not understand what it means:

  "In particular, the Hindley/Milner style of type inference used in languages 
such as OCaml or Haskell is incompatible with lots of assumptions of OO 
languages. One incompatibility is with overloading. That's why OCaml does not 
let you write + for both integer and floating point addition. Another 
incompatibility is with higher order polymorphism. That's why OCaml gives you 
only monomorphic methods in classes." - Martin Odersky

In what way must methods be monomorphic in OCaml classes?

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/?e


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

end of thread, other threads:[~2008-01-08 21:25 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-28 23:37 "OCaml gives you only monomorphic methods in classes." Jon Harrop
2007-12-28 23:55 ` [Caml-list] " Gordon Henriksen
2007-12-29  0:27   ` Jon Harrop
2007-12-29  1:19     ` Gordon Henriksen
2007-12-29  1:30       ` Jon Harrop
2007-12-31 14:02       ` Kuba Ober
2007-12-29  4:31 ` Dylan William Hardison
2007-12-29  7:09   ` Jon Harrop
2007-12-29  6:30 ` brogoff
2007-12-29  7:11   ` Jon Harrop
2007-12-29 16:57     ` brogoff
2008-01-08  2:30     ` Jacques Garrigue
2008-01-08  9:42       ` Jon Harrop
2008-01-08 13:45         ` Peng Zang
2008-01-08 17:29         ` brogoff
2008-01-08 21:25         ` Paolo Donadeo

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