News for hackers. Stuff that matters.
Re:Elm is Wrong by ungzd on Wednesday November 09, 2016 @06:38AM (#12909388)
Does the same criticism apply to OCaml and F#? Anyone who used these languages for long time, how do you solve lack of higher-kinded types (or OCaml has them?) and do polymorphism?
Re:Elm is Wrong by onlydnaq on Wednesday November 09, 2016 @07:23AM (#12909658)
I don't really agree with the premise that not having type classes is as big of a problem that the author thinks, but to answer your question OCaml has functors which are basically higher order modules. A functor in OCaml is a module defined over abstract types and you instantiate it with concrete types.

A lot of people in the Haskell community have yearned for this as well, and the latest version of the Haskell compiler will support something similar called Backpack.

Re:Elm is Wrong by shoover on Wednesday November 09, 2016 @10:24AM (#12910852)
In F# you can always bail on the strict parts of the F# type system and use .NET classes and interfaces for polymorphism.