Skip to main content
Hyperglot Programmer
side navigation

Posts about bucklescript

I've been meaning to make a more comprehensive bucklescript-tea tutorial / example project for a while, and I had an older one partially done but it is a bit out of date now so I've decide to make one anew instead, and to facilitate this I've decided to make a game. Right now most of the 'reference information' about bucklescript-tea is identical to Elm's documentation, so seeing the real-world use of it would be more generically useful.

Read more…

Why might you want to use Bucklescript? Let's explore just how awesome OCaml is to use on javascript over alternative languages and why it has staying power.

OCaml/Bucklescript:

print_endline "Hello World!"

let add l r = l + r

Javascript:

console.log("Hello World!");

function add(l, r) {
  return l + r | 0;
}

Read more…