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

Option: deprecate or, orElse and unzip #2949

Merged
merged 1 commit into from
Mar 1, 2023
Merged

Conversation

nomisRev
Copy link
Member

I propose to deprecate or, orElse since they overlap with recover and Either doesn't have this API.

Similarly I propose to deprecate unzip since I find it a rather obscure API that is unmatched in Either, or does this API make sense for Option but not for Either?

Additionally, in https://github.com/arrow-kt/arrow/pull/2935/files#r1117382480 I also proposed to deprecate combine for removal which overlaps with option { combine(a.bind(), b.bind()) }.

@nomisRev nomisRev added the 1.2.0 Tickets belonging to 1.1.2 label Feb 24, 2023
@github-actions
Copy link
Contributor

Kover Report

File Coverage [52.16%]
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Option.kt 52.16%
Total Project Coverage 43.90%

Copy link
Member

@raulraja raulraja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@nomisRev nomisRev merged commit 7a7f0a9 into main Mar 1, 2023
@nomisRev nomisRev deleted the sv-option-orelse-unzip-depr branch March 1, 2023 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.2.0 Tickets belonging to 1.1.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants