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

✨ [Extension] Create success and failure extension functions #97

Conversation

lopes-felipe
Copy link
Collaborator

What's in this PR?

This PR adds extension functions for both Result.success and Result.failure methods.

Description

We have been using an inner-company version of these extension functions for a while now and it have been proved massive productive and a lot more readable for converting/encapsulating direct returns, either for objects or exceptions.

@lopes-felipe
Copy link
Collaborator Author

What are your thoughts on this @kittinunf?

@kittinunf
Copy link
Owner

I think it is cool 👍 ! Let me check for minor formatting problem.

@kittinunf
Copy link
Owner

Let's go!

@kittinunf kittinunf changed the title [Extension] Create success and failure extension functions ✨ [Extension] Create success and failure extension functions Aug 15, 2021
@kittinunf kittinunf merged commit ca5080d into kittinunf:master Aug 15, 2021
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.

2 participants