reasonml / reason

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
http://reasonml.github.io
MIT License
10.08k stars 425 forks source link

Fix 2695: local open + let bindings #2716

Closed SanderSpies closed 5 days ago

SanderSpies commented 1 year ago

Solves #2695.

Makes it possible to use:

 let y = Promise.Ops.(
  let* x = Js.Promise.resolve(42);
  Js.Promise.resolve(x * 2);
);

Printing isn't perfect, but good enough for now.

anmonteiro commented 5 days ago

Thank you again, and sorry for the delay