Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impl. Result#try! #520

Merged
merged 6 commits into from
Nov 9, 2023
Merged

impl. Result#try! #520

merged 6 commits into from
Nov 9, 2023

Conversation

yhara
Copy link
Collaborator

@yhara yhara commented Nov 9, 2023

This PR implements pseudo-method try!.

 foo.try!

is equivalent to

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

@yhara yhara merged commit f998881 into main Nov 9, 2023
4 checks passed
@yhara yhara deleted the try-bang2 branch November 9, 2023 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant