Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] [Q]: Co(ntra)variance and subtyping?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-11-19 (11:03)
From: Alain Frisch <frisch@c...>
Subject: Re: [Caml-list] [Q]: Co(ntra)variance and subtyping?
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 ()


Bug reports:  FAQ:
To unsubscribe, mail  Archives: