shiika-lang / shiika

A statically-typed programming language
MIT License
223 stars 15 forks source link

impl. Result#try! #520

Closed yhara closed 10 months ago

yhara commented 10 months ago

This PR implements pseudo-method try!.

 foo.try!

is equivalent to

match foo
when Ok(v) then v
when e return e
end