caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Leo White <lpw25@cam.ac.uk>
To: Andreas Rossberg <rossberg@mpi-sws.org>
Cc: David Sheets <sheets@alum.mit.edu>,  Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] First-class Functor Forgetting for Free
Date: Mon, 12 Aug 2013 12:37:34 +0100	[thread overview]
Message-ID: <86haevnnr5.fsf@cam.ac.uk> (raw)
In-Reply-To: <5208C0A7.2040906@mpi-sws.org> (Andreas Rossberg's message of "Mon, 12 Aug 2013 13:01:59 +0200")

>> So,
>>
>>    let g x = let module X = (val x : D) in X.(f x)
>>
>> would have a type:
>>
>>    (module D with ..) -> int
>
> This certainly is a nice suggestive syntax, but it is assuming an underlying semantic similarity that does not
> exist. Semantically, the type sharing equations on signatures have very little in common with rows, and I have a hard
> time imagining what interpreting the above as a row would even mean or how it would fit in with either core or module 
> typing. 

I don't see what is hard to imagine. The row variable represents
possible extra with-constraints. The type above can be unified with any
package type with signature D.

With-constraints are essentially sets of label and type pairs, row
polymorphism provides a mechanism for typing sets of label and type
pairs. I don't see where they differ "semantically".

> (I could go into boring technical details here, but I'll leave it at
> that. :) )

I would prefer it if you did (off-list if you prefer).

Regards,

Leo

  reply	other threads:[~2013-08-12 11:35 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-11  1:55 David Sheets
2013-08-11  7:53 ` Andreas Rossberg
2013-08-11 13:29   ` David Sheets
2013-08-11 14:32     ` Andreas Rossberg
2013-08-11 14:58       ` Leo White
2013-08-12 11:01         ` Andreas Rossberg
2013-08-12 11:37           ` Leo White [this message]
2013-08-12 12:15             ` Andreas Rossberg
2013-08-12 13:06               ` Leo White
2013-08-12 14:15                 ` Andreas Rossberg
2013-08-12 15:17                   ` Leo White
2013-08-12 16:08                     ` Andreas Rossberg
2013-08-12 16:46                       ` Leo White
2013-08-13 11:22                         ` Andreas Rossberg

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=86haevnnr5.fsf@cam.ac.uk \
    --to=lpw25@cam.ac.uk \
    --cc=caml-list@inria.fr \
    --cc=rossberg@mpi-sws.org \
    --cc=sheets@alum.mit.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;
as well as URLs for NNTP newsgroup(s).