Re:Experiment: Unit testing isn't enough; You need static ty...
by carterschonwald on Wednesday June 20, 2012 @10:28AM
(#4137114)
False, ocaml has type classes now! (or maybe I'm thinking of coq)
[ Parent
| on HN ]
Re:Experiment: Unit testing isn't enough; You need static ty...
by pja on Wednesday June 20, 2012 @10:40AM
(#4137182)
I don't think so: If you want the equivalent of Haskell type classes in OCaml then you have to either use a functors or some sort of class IIRC. I'm sure Oleg will have done something though.
I believe they're experimental in Coq.
Re:Experiment: Unit testing isn't enough; You need static ty...
by carterschonwald on Wednesday June 20, 2012 @11:45PM
(#4140455)
yup, you're right, you got to use functors or go home.
Yeup, some folks did show the functors + modules \equiv type classes in some sense, for system F or a variant thereof. Theres also an oleg approach too I think.