8000 Add onEmptySwitch for Values to OrElseValue · Issue #1070 · aol/cyclops · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add onEmptySwitch for Values to OrElseValue #1070

8000 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

Closed
johnmcclean opened this issue Jul 31, 2019 · 2 comments
Closed

Add onEmptySwitch for Values to OrElseValue #1070

johnmcclean opened this issue Jul 31, 2019 · 2 comments
Assignees
Milestone

Comments

@johnmcclean
Copy link
Member
johnmcclean commented Jul 31, 2019

Is your feature request related to a problem? Please describe.

Values such as Option use a different naming scheme for swtching to a different instance of the Value when it is empty than ReactiveSeq.

Describe the solution you'd like
This will introduce methods that follow the ReactiveSeq naming convention, and deprecate the existing methods - for removal in a later major version of Cyclops.

The new methods should be added to

com.oath.cyclops.types.OrElseValue

The old methods should call the new ones.

@johnmcclean johnmcclean added this to the 10.4.0 milestone Jul 31, 2019
@johnmcclean johnmcclean self-assigned this Jul 31, 2019
johnmcclean added a commit that referenced this issue Jul 31, 2019
@johnmcclean
Copy link
Member Author

recoverWith is used for scalar types (along with recover for a non-monadic value recovery) instead of onEmptySwitch.

@johnmcclean
Copy link
Member Author

Merged.

johnmcclean added a commit that referenced this issue May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant
0