From: Yotam Barnoy <yotambarnoy@gmail.com>
To: Ocaml Mailing List <caml-list@inria.fr>
Subject: [Caml-list] Implicit module question
Date: Tue, 9 Sep 2014 11:32:01 -0400 [thread overview]
Message-ID: <CAN6ygOkMTDYLbfZrL2rSBFK15psESCgEnoeDPMBXWsLt8HCEhQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 769 bytes --]
I loved the Implicit Module presentation, and I'm very happy for ocaml to
be moving from a fully dynamic first-class-module existential type model
(excluding functors of course) that can't be optimized to one where the
compiler is in control and can do significant static analysis. I have a
question about the implicit module implementation: Is there any way to
combine modules automatically? For example, suppose I have a Show implicit
module and an Ord implicit module, and a function receives both, and wants
to infer both functionalities for an incoming type so we can run both show
and compare on the same type. Does the current model cover such a use-case?
If not, is there any idea how to move in this direction? Automatic module
fusion perhaps?
Thanks,
Yotam
[-- Attachment #2: Type: text/html, Size: 847 bytes --]
next reply other threads:[~2014-09-09 15:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-09 15:32 Yotam Barnoy [this message]
2014-09-09 15:47 ` Jeremy Yallop
2014-09-09 15:53 ` Yotam Barnoy
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=CAN6ygOkMTDYLbfZrL2rSBFK15psESCgEnoeDPMBXWsLt8HCEhQ@mail.gmail.com \
--to=yotambarnoy@gmail.com \
--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