From: David Allsopp <dra-news@metastack.com>
To: OCaml List <caml-list@inria.fr>
Subject: RE: [Caml-list] More existential escapes (or possibly first class polymorphism)
Date: Sun, 22 Mar 2015 11:20:53 +0000 [thread overview]
Message-ID: <E51C5B015DBD1348A1D85763337FB6D9E99EE0D2@Remus.metastack.local> (raw)
In-Reply-To: <CAAxsn=FGT+C=Dv3UVU81uSurVdXRorsXD7b=pjkOOWYG-YsQTw@mail.gmail.com>
Jeremy Yallop wrote:
> On 20 March 2015 at 16:29, David Allsopp <dra-news@metastack.com> wrote:
> > Is there some other wizardry on offer which can allow the polymorphic
> > nature of [f] to be inferred?
>
> Unfortunately not. OCaml doesn't infer polymorphic types for function
> parameters.
Thanks - it's useful to know to stop looking :o)
Is there an unsoundness reason why there isn't a type annotation which can allow it be specified, rather than inferred, that a function argument is polymorphic? Or is that the "purity" of wanting the type system of the core language to be inferable?
David
next prev parent reply other threads:[~2015-03-22 11:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-20 16:29 David Allsopp
2015-03-20 16:43 ` Jeremy Yallop
2015-03-22 11:20 ` David Allsopp [this message]
2015-03-22 14:29 ` Gabriel Scherer
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=E51C5B015DBD1348A1D85763337FB6D9E99EE0D2@Remus.metastack.local \
--to=dra-news@metastack.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