Skip to content

v0.13: Reason 3

Latest
Compare
Choose a tag to compare
@rrdelaney rrdelaney released this 22 Nov 05:58
· 70 commits to master since this release

This whole release was done by @cristianoc in #46!

Reason 3 Compilation

Output should now be in Reason 3 syntax 馃槃 Check out how awesome this output is!

type thing('x) = {. "lst": array('x)};

module Adder = {
  type t('x) = {. "add": [@bs.meth] ('x => 'x)};
  [@bs.new] [@bs.module "generics"] external make : 'x => t('x) = "Adder";
};

type subOpts('m, 'n) = {. "m": 'm, "n": Adder.t('n)};

The old syntax won't be supported past this point.

Optional Object Properties

See more in #46