From: Jeff Polakow <jeff.polakow@db.com>
To: "Tom <tom.primozic" <tom.primozic@gmail.com>
Cc: caml-list <caml-list@inria.fr>, caml-list-bounces@yquem.inria.fr
Subject: Re: [Caml-list] What is "principal typing"?
Date: Wed, 20 Dec 2006 23:10:24 -0500 [thread overview]
Message-ID: <OF87E2E99E.6BAB6D82-ON8525724B.00156B64-8525724B.0016ECC2@db.com> (raw)
In-Reply-To: <c1490a380612201353ib8e04eem44e82b01faf1be14@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1514 bytes --]
Hello,
There are two notions, often conflated, which you might be referring
to: principal types and principal typings. The following is taken from [1]
which is worth reading if you're interested in this topic.
Principal Types
Given: a term M typable with type assumptions A.
There exists: a type sigma representing all possible types for M in
A.
Principal Typings
Given: a typable term M.
There exists: a judgement A |- M : tau \x1c representing all possible
typings for M.
Principal types, which ML has, are useful because, for a given context,
there is a most general type for any typeable term. This is a useful
property to have for languages which attempt type inference.
Principal typeings, which ML does not have, are useful because they allow
for compositional type inference (i.e. each piece of the program can be
analyzed separately).
[1] J. B. Wells. The essence of principal typings. In Proc. 29th Int'l
Coll. Automata, Languages, and Programming, volume 2380 of LNCS, pages
913-925. Springer-Verlag, 2002.
(http://www.macs.hw.ac.uk/~jbw/papers/Wells:The-Essence-of-Principal-Typings:ICALP-2002.pdf)
--Jeff
---
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
[-- Attachment #2: Type: text/html, Size: 2678 bytes --]
next prev parent reply other threads:[~2006-12-21 4:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-20 21:53 Tom
2006-12-21 4:10 ` Jeff Polakow [this message]
2006-12-21 6:42 ` [Caml-list] " Tom
2006-12-21 21:02 ` Jeff Polakow
2006-12-21 7:27 ` Christophe Dehlinger
2006-12-21 21:07 ` Jeff Polakow
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=OF87E2E99E.6BAB6D82-ON8525724B.00156B64-8525724B.0016ECC2@db.com \
--to=jeff.polakow@db.com \
--cc=caml-list-bounces@yquem.inria.fr \
--cc=caml-list@inria.fr \
--cc=tom.primozic@gmail.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