How about BuckleScript, a OCaml compiler back-end that eats OCaml and spits out JavaScript?
Looks pretty Pythonic to me:
let rec hanoi n a b c = if n > 0 then (hanoi (n - 1) a c b; Js.log {j|Move disk from pole $a to pole $b|j}; hanoi (n - 1) c b a) let _ = hanoi 4 1 2 3
Yeah plus all the types and all the goodness 😄
woah that looks super Elm-ish to me
They actually share roots! OCaml and Elm are both in the ML family of programming languages.
I had a better time learning Reason and BuckleScript than learning Elm though LOL but hey as long as it's functional I'm all for it
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
How about BuckleScript, a OCaml compiler back-end that eats OCaml and spits out JavaScript?
Looks pretty Pythonic to me:
Yeah plus all the types and all the goodness 😄
woah that looks super Elm-ish to me
They actually share roots! OCaml and Elm are both in the ML family of programming languages.
I had a better time learning Reason and BuckleScript than learning Elm though LOL but hey as long as it's functional I'm all for it