Here’s the Deal
Slant is powered by a community that helps you make informed decisions. Tell us what you’re passionate about to get your personalized feed and help others.
KAJS vs Js_of_ocaml
When comparing KAJS vs Js_of_ocaml, the Slant community recommends Js_of_ocaml for most people. In the question“What are the best languages that compile to JavaScript? ” Js_of_ocaml is ranked 33rd while KAJS is ranked 51st. The most important reason people chose Js_of_ocaml is:
Js_of_ocaml brings all OCaml features to Javascript: static typing, type inference, modules, functional programming style...
Ranked in these QuestionsQuestion Ranking
Common Questions
Pros
Pro Has Ruby-like @ feature
So for example instead if using this.foo
, you can call that variable by using @foo
.
Pro Implicit bracket and variables
No need for var keyword or brackets, just call a function like foo "bar".
Pro All OCaml features
Js_of_ocaml brings all OCaml features to Javascript: static typing, type inference, modules, functional programming style...
Cons
Con No documentation
Con Documentation
Documentation is still scarce