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

Proposing new syntax for zero-cost unwrapping options/results

$
0
0

My 2 cents, this will be super useful in keeping code readable and flat, and I think it is a great addition.

let? is fine, easy to get used to it and straightforward once you know.

Like @hellos3b mentioned, if this could use the type info so that we wouldn’t need to add Ok or Some it would look even neater, but it is fine if not, still very useful.

Love the composable errors snippet too, even cooler with this sugar.

Can’t wait to use this!


Viewing all articles
Browse latest Browse all 2592

Trending Articles