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

This proposal is only about continuing on the happy path. So this wouldn’t be valid:

let? r = myFunc()

It’d need to be this:

let? Ok(r) = myFunc()

Which means any Error is propagated, and forced to handle elsewhere. So you’d handle the errors wherever you call the function using let?.


Viewing all articles
Browse latest Browse all 2592

Trending Articles