From: Julien Signoles <julien.signoles@gmail.com>
To: Dario Teixeira <darioteixeira@yahoo.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Questions concerning modules as first-class values
Date: Wed, 2 Jun 2010 15:43:32 +0200 [thread overview]
Message-ID: <AANLkTik5APhKZJVEt0ke1MR3_Uj4zF8Sla317pxvTArE@mail.gmail.com> (raw)
In-Reply-To: <367372.3609.qm@web111501.mail.gq1.yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 1248 bytes --]
Hello,
2010/6/2 Dario Teixeira <darioteixeira@yahoo.com>
> -------------------------------------------------
> | | 0-arity | n-arity (n>0) |
> -------------------------------------------------
> | Valueish | value | function |
> | | | |
> | Moduleish | module | functor |
> -------------------------------------------------
>
I disagree with your terminology. Below is the one I use:
-------------------------------------------------
> | | 0-arity | n-arity (n>0) |
> -------------------------------------------------
> | Value | constant | function |
> | | | |
> | Module | structure | functor |
> -------------------------------------------------
>
> Second, does the promotion of modules to first-class values also extend to
> higher-order modules, ie, functors?
>
If I well understood what Alain Frisch and Xavier Leroy explained, modules
(including both structures and functors) become first class value:
structures may be converted to records and functors to functions; and
conversely. But I let more informed person confirm this.
--
Julien
[-- Attachment #2: Type: text/html, Size: 1905 bytes --]
next prev parent reply other threads:[~2010-06-02 13:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-02 13:14 Dario Teixeira
2010-06-02 13:43 ` Julien Signoles [this message]
2010-06-02 16:28 ` [Caml-list] " Alain Frisch
[not found] ` <21533_1275496091_o52GSC5l015052_4C068697.5050007@frisch.fr>
2010-06-02 17:36 ` Eric Cooper
2010-06-03 15:31 ` Alain Frisch
2010-06-04 1:34 ` Jacques Garrigue
2010-06-04 4:59 ` Alain Frisch
2010-06-02 14:05 Dario Teixeira
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=AANLkTik5APhKZJVEt0ke1MR3_Uj4zF8Sla317pxvTArE@mail.gmail.com \
--to=julien.signoles@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=darioteixeira@yahoo.com \
/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