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
Why + vs +. but "fake" parametric polymorphism for <
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-10-13 (11:56)
From: Diego Olivier FERNANDEZ PONS <diego.fernandez_pons@e...>
Subject: Re: [Caml-list] Why + vs +. but "fake" parametric polymorphism for <

Quoting Jonathan Roewen <>:
> That's correct. As showed, specifying types somewhere (as I did with
> the return type, and someone else did for a given parameter), type
> inference deduces the types of the parameters and return values,
> allowing it optimise.

As far as I remember it doesn't work when you specify the type in the  
.mli file. And I never understood really why.

         Diego Olivier