caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
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: Thu, 21 Dec 2006 16:02:57 -0500	[thread overview]
Message-ID: <OF710190C2.C241E999-ON8525724B.0071C2B6-8525724B.0073A0B2@db.com> (raw)
In-Reply-To: <c1490a380612202242u78e9429dm7319aaf4c0aa8a28@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1020 bytes --]

Hello,

> Could you give some concrete example of a type inference engine and 
> a typable term, but which does not have a principal type?
> 
Here is a silly example. Consider a simply typed lambda calculus with 
subtyping on base types (e.g. int < real) but no structural subtyping 
(i.e. no subtype relation between functions). Then things like the 
identity function have no principal type. 

There are less trivial systems out there where, usually involving subtying 
and/or type classes, where principal types either don't exist or were 
tricky to figure out. But I am several years removed from actively 
thinking about this stuff and can't recall off hand more specific details.

-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: 1810 bytes --]

  reply	other threads:[~2006-12-21 21:03 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 ` [Caml-list] " Jeff Polakow
2006-12-21  6:42   ` Tom
2006-12-21 21:02     ` Jeff Polakow [this message]
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=OF710190C2.C241E999-ON8525724B.0071C2B6-8525724B.0073A0B2@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;
as well as URLs for NNTP newsgroup(s).