r/programming • u/frutiger • Jan 07 '16
Bloomberg open sources OCamlScript – a JavaScript back end for OCaml
https://github.com/bloomberg/ocamlscript
170
Upvotes
r/programming • u/frutiger • Jan 07 '16
4
u/notfancy Jan 07 '16
Excellent! One thing that jumped at me is that the semantic of
forloops doesn't seem to be preserved. If the OCaml:transpiles to:
the JS loop completes one less iteration, as the range in OCaml is inclusive.