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

Rescript frustration

$
0
0

The fact ? needs to return the same type of error significantly reduces its appeal imo.

Regarding option helper functions, there’s quite many of them now in Core, I think you’re looking for getOr or Else and flatMap.

Don’t hesitate to say it if you identify something missing!

@xfcw Could you share a real world example of a rescript function you find too cumbersome without early returns?


Viewing all articles
Browse latest Browse all 2592

Trending Articles