-
Notifications
You must be signed in to change notification settings - Fork 11
Usage in Rescript #30
Comments
I'm seeing this same issue in ReScript. Is it possible to use this library with ReScript? |
ReScript doesn't offer this kind of syntax, and we also don't recommend extending the language with arbitrary ppxes. bs-let introduces a lot of complexities that are also not desirable for the user. We will eventually add async / await support for better promise handling, and for the option sugar above, it is more idiomatic to use a single pattern match on all your optional values instead. Sorry for the inconvenience |
Sounds good! Thank you for the reply and explanation! |
If you are keen on async story in ReScript, you may be interested in the post -- A proposal for async style sugar from ReScript Forum. |
It can be used, but it seems to have no advantages.
|
HI,
I am a little new to Rescript. I am trying to reproduce the example in your README in Rescript. This is as far as I got:
I am getting:
I assume the
let%
syntax has to change somehow for rescript?Thanks.
The text was updated successfully, but these errors were encountered: