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
Typeclasses in OCaml (Was: Haskell vs OCaml)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Wolfgang Lux <wlux@u...>
Subject: Re: [Caml-list] Typeclasses in OCaml (Was: Haskell vs OCaml)
Till Varoquaux wrote:

> Typw inference in haskell is not decideable (nor is it in ocaml when
> using objects) and you have to provide some type information.

Huh? The only thing that is not decidable in Haskell's type system is  
polymorphic recursion. Apart from that you do not need any type  
annotations (except in order to get around Haskell's monomorphism  
restriction, but that is a different story).

> On top of breaking inference type cleases come at a high run tine
> cost.

Type classes do not break type inference. Just read Mark P. Jones's