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
type alias for Checks, converting from Some to error #4841
Comments
I think variants of |
thanks for the reply. I agree for the type alias. about noneOrFail, would you like me to submit a PR ? only the ZIO trait needs a change, right ? |
I think it would be a constructor so it would go on the |
Here is the PR : #4851 I struggled with the unit tests. |
cleaned the format + signed the CLA |
actually, I'll let this open until the feature is available in the next release |
I think if we have implemented the feature we should close the issue even if it is not in the latest release yet. |
I have identified a recurring pattern in our project using ZIO.
We want to fail when some function returns Some(x) and succeed when it returns None.
I'm thinking of defining a method like this one:
And maybe a new type Alias
Is there a more standard way to do this with ZIO?
Otherwise, is this an extension you'd be interested to add ?
The text was updated successfully, but these errors were encountered: