Browse thread
Why + vs +. but "fake" parametric polymorphism for <
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Diego Olivier FERNANDEZ PONS <diego.fernandez_pons@e...> |
| Subject: | Re: [Caml-list] Why + vs +. but "fake" parametric polymorphism for < |
Bonjour,
Quoting Jonathan Roewen <jonathan.roewen@gmail.com>:
> 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