From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=AWL,HTML_MESSAGE,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id B4215BC0A for ; Thu, 21 Dec 2006 07:42:01 +0100 (CET) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id kBL6g15G019820 for ; Thu, 21 Dec 2006 07:42:01 +0100 Received: by nf-out-0910.google.com with SMTP id m19so2788544nfc for ; Wed, 20 Dec 2006 22:42:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=hhHoYPKP0K3mveJinZ3bx3/yDlIqi9kirStHiNzC8HQzA9WiQB5o0B9C3bh6QLXSV4oNA5KG1fB1tDHqOJYFOGtJ5a9Hcjn/+NRfEhISecSrDO8JSrOf6AdzYmcjNzxZoX+hEdq+AphlMCvov4z/ZinMXfgOX6Q3dX3kUWujtwo= Received: by 10.82.184.2 with SMTP id h2mr1845182buf.1166683321084; Wed, 20 Dec 2006 22:42:01 -0800 (PST) Received: by 10.82.100.16 with HTTP; Wed, 20 Dec 2006 22:42:01 -0800 (PST) Message-ID: Date: Thu, 21 Dec 2006 07:42:01 +0100 From: Tom To: "Jeff Polakow" Subject: Re: [Caml-list] What is "principal typing"? Cc: caml-list , caml-list-bounces@yquem.inria.fr In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_42828_8900922.1166683321044" References: X-j-chkmail-Score: MSGID : 458A2CB9.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 458A2CB9.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; polakow:01 polakow:01 inference:01 inference:01 typable:01 typable:01 sans-serif:98 wrote:01 wrote:01 typing:01 caml-list:01 languages:03 languages:03 types:03 types:03 X-Attachments: cset="UTF-8" cset="UTF-8" ------=_Part_42828_8900922.1166683321044 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks! On 21/12/06, Jeff Polakow wrote: > > > > 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. Could you give some concrete example of a type inference engine and a typable term, but which does not have a principal type? - Tom ------=_Part_42828_8900922.1166683321044 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks!

On 21/12/06, Jeff Polakow <jeff.polakow@db.com> wrote:


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.
 

Could you give some concrete example of a type inference engine and a typable term, but which does not have a principal type?
 
- Tom
------=_Part_42828_8900922.1166683321044--