News for hackers. Stuff that matters.
Re:BuckleScript: write JavaScript faster, safer and smaller by tomku on Saturday January 21, 2017 @10:53AM (#13450557)
You might find this page from the Reason website useful: https://facebook.github.io/reason/mlCompared.html

It replaces a lot of the idiosyncratic bits of OCaml's syntax with things that feel more appropriate if you're comfortable with other modern languages.

A quick example is tuple types. OCaml declares tuple types as int * int, which makes total sense if you know that tuples are a product type. However, you actually create tuples using commas. Reason throws away the connection to theory and uses the same syntax for types (int, int) and creating values of that type (3, 7).

There are no comments on this comment yet.