From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA29836; Mon, 19 Nov 2001 12:03:11 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA01044 for ; Mon, 19 Nov 2001 12:03:09 +0100 (MET) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id fAJB39115544 for ; Mon, 19 Nov 2001 12:03:09 +0100 (MET) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id fAJB37U52178 ; Mon, 19 Nov 2001 12:03:07 +0100 (CET) Received: from localhost (frisch@localhost) by clipper.ens.fr (8.9.2/jb-1.1) id MAA09050 ; Mon, 19 Nov 2001 12:03:06 +0100 (MET) Date: Mon, 19 Nov 2001 12:03:06 +0100 (MET) From: Alain Frisch To: Jacques Garrigue cc: , Subject: Re: [Caml-list] [Q]: Co(ntra)variance and subtyping? In-Reply-To: <20011119093329G.garrigue@kurims.kyoto-u.ac.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, 19 Nov 2001, Jacques Garrigue wrote: > In the ML world, we mean complete type inference. What does complete type inference mean ? I would say that it implies that no type annotation is mandatory (if a program typechecks with a type annotation, it should also typecheck without). This property does not hold in OCaml; you can't remove type annotation in: class o = object method f (x : int) = x end or in the toplevel structure: let f () : [`A] = `A let x = f () -- Alain ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr