News for hackers. Stuff that matters.
Re:Compile OCaml to JavaScript, use ReactJS, bindings to Rea... by klibertp on Wednesday July 27, 2016 @03:56AM (#12171218)
A sane, powerful type system is actually enough of a rationale and a selling point, at least for me.

Also, allowing side-effects while still providing the mentioned type system makes it potentially much easier to integrate with existing JS code.

Re:Compile OCaml to JavaScript, use ReactJS, bindings to Rea... by cies on Wednesday July 27, 2016 @04:35AM (#12171316)
Another reason for it being "much easier to integrate with existing JS code" is strict evaluation.

Haskell is lazy, which means using GHCJS to compile it to JS produces code full of explicit thunks (think of promises). Both Elm and PureScript are compile-to-JS-languages that inherit a lot from Haskell, but not it's laziness.