caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Class/prototype-based OO
@ 2006-08-25  7:51 David Baelde
  2006-08-25 11:31 ` [Caml-list] " skaller
  0 siblings, 1 reply; 12+ messages in thread
From: David Baelde @ 2006-08-25  7:51 UTC (permalink / raw)
  To: Ocaml

Hi list,

After having had to learn Java, I was annoyed by the lack of subtyping
compared to OCaml. In Java two identical classes with different names
cannot be used identically. I then re-read Wikipedia's articles on
prototype-based [1] and class-based [2] OO. I used to be convinced
that OCaml was cited in the first category. It is not the case, and I
see now that the question is not trivial.

It is said that prototype-based OO is criticized for being too
dynamic, I believe that OCaml style of OO is an example of static
language having at least the most interesting features of
prototype-based OO.

Any opinion?

If I remember well, I didn't like the duck-typing article either,
which authors didn't seem to know OCaml. Our language makes the
boundary between static and dynamic languages more complex.

Cheers.
-- 
David

[1] http://en.wikipedia.org/wiki/Prototype-based_programming
[2] http://en.wikipedia.org/wiki/Class-based_OOP


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

end of thread, other threads:[~2006-08-31  7:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-25  7:51 Class/prototype-based OO David Baelde
2006-08-25 11:31 ` [Caml-list] " skaller
2006-08-29  3:11   ` Ted Kremenek
2006-08-29  5:53     ` skaller
2006-08-30 23:57       ` brogoff
2006-08-29 12:03     ` Gerd Stolpmann
2006-08-29 17:56       ` Ted Kremenek
2006-08-29 18:13       ` Ted Kremenek
2006-08-31  1:11     ` Jacques Garrigue
2006-08-31  5:18       ` skaller
2006-08-31  6:36         ` Jacques Garrigue
2006-08-31  7:15           ` skaller

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