Re:Experiment: Unit testing isn't enough; You need static ty...
by gnuvince on Wednesday June 20, 2012 @01:03PM
(#4137871)
What do you mean by "the type inference isn't as cool as what's in Haskell"?
Re:Experiment: Unit testing isn't enough; You need static ty...
by ansible on Wednesday June 20, 2012 @02:31PM
(#4138398)
IIRC, Ocaml does use Hindley-Miller, but Haskell has some tweaks that make it work better. I may be mistaken, someone who is more current on both please correct me.
In retrospect, I think I was also thinking about type-classes in Haskell, which Ocaml does not have. But from what I understand Ocaml has other means to achieve the same ends.
I consider Ocaml [1] to fill that particular niche. When I was going through my FP phase, I tried that out a little before going full-on lazy evaluation with Haskell.
From what I can recall, the type inference isn't as cool as what's in Haskell, but at least it's there. There are plenty of libraries, and packages for major OSs.
[1] http://caml.inria.fr/ocaml/