Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: John Prevost <prevost@maya.com>
To: Didier.Remy@inria.fr
Cc: caml-list@inria.fr, Kim Bruce <kim@bull.cs.williams.edu>
Subject: Re: Ocaml 2 object system origins
Date: 13 Sep 1999 10:10:08 -0400	[thread overview]
Message-ID: <m3so4inbr3.fsf@isil.maya.com> (raw)
In-Reply-To: Didier.Remy@inria.fr's message of "Mon, 13 Sep 1999 15:15:57 +0200"

Ahh.  Thanks very much--I recalled that there were some papers about
this, but poked around the web page a bit ineffectually.

On the topic of folklore and matching, you say:

> On the other hand, the language LOOM uses a new notion called
> matching (<#) and primitive self-types. It is folklore (but I don't
> think it has ever been checked formally) that matching does not
> accomplish more than polymorphism over row-variables.

Hmm.  My intuition on looking at the two systems is to believe that,
if anything, polymorphism over row-variables *might* be more powerful.

Unfortunately, the comparison is complicated, since LOOM allows
variables of type #foo, and in O'Caml #foo is a synonym for a
type-expression with an unbound type variable (implying that this type
must be unified to a single type except in polymorphic function
types.)  (It's so worrying when intuition can be confused in this
way.)

In any case, I'll have to do more reading and comparison now that I
have descriptions of both systems available to me.

Thanks very much for the excellent explanation.

John




  reply	other threads:[~1999-09-14  7:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-06 10:38 John Prevost
1999-09-10 14:05 ` Jerome Vouillon
1999-09-13 13:15 ` Didier.Remy
1999-09-13 14:10   ` John Prevost [this message]
1999-09-13 21:43     ` Kim Bruce

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=m3so4inbr3.fsf@isil.maya.com \
    --to=prevost@maya.com \
    --cc=Didier.Remy@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=kim@bull.cs.williams.edu \
    /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