aantron / promise

Light and type-safe binding to JS promises
MIT License
340 stars 24 forks source link

Docs: show how to use Repromise with let* syntax (OCaml-only) #42

Closed aantron closed 4 years ago

simontegg commented 4 years ago

Congrats on getting to 1.0 Related to this pre-1.0 it was pretty easy to get running with bs-let. Is this still posiible with the new API?

aantron commented 4 years ago

Thanks! I will post proper announcements soon.

It should be slightly easier with the new API. The core declaration is now

let let_ = Promise.flatMap;

I'll ping bs-let about this after the announcements.

aantron commented 4 years ago

I sent a PR to bs-let.

I'm going to close this issue, as I've focused the library on Reason/JS for now (the native stuff is still there, I'll develop it more later). Reason doesn't have let* yet (AFAIK), and I don't want to explictly recommend bs-let either, as it seems to also be a temporary solution until let*.