Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1787

Gleams use expression

$
0
0

While chaining promises (without async/await) there is also the focus on the happy path.
Don’t know if you handle it in another way?

let result = promise->then()->then()->then()->catch()

Exceptions would solve the problem, but never thought about using exceptions instead of options for example :thinking:
And as you mentioned: You have to use another tool to track them.


Viewing all articles
Browse latest Browse all 1787

Trending Articles