caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: brogoff <brogoff@speakeasy.net>
To: Ocaml <caml-list@inria.fr>
Subject: Re: [Caml-list] Class/prototype-based OO
Date: Wed, 30 Aug 2006 16:57:02 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.58.0608301641390.17772@shell2.speakeasy.net> (raw)
In-Reply-To: <1156830791.5147.144.camel@rosella.wigram>

On Tue, 29 Aug 2006, skaller wrote:
> Yes, indeed, this is wonderful! For the first time programmers
> learn the truth.
>
> Ocaml does not pander to the false god of Object Orientation.

Putting aside the loaded nature of the statement, Ocaml does not only
support OO directly but any future enhancement has to work with the
current Ocaml object system, which would seem to be a high bar for
introducing new typing features.

It would be more orthogonal IMO if there were no objects but rather some kind
of polymorphic records dual to polymorphic variants, and an extended module
system (what happened to the mixin modules?) which could handle other aspects
of OO. Maybe a future ML will go in that direction?

That's not saying that OO is "false", just that I think of parameterized
modules as a fundamental ML feature and my sense is that the class system
sits uneasily with modules.

-- Brian


  reply	other threads:[~2006-08-30 23:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-25  7:51 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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.58.0608301641390.17772@shell2.speakeasy.net \
    --to=brogoff@speakeasy.net \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).