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

Deprecate Either.toValidated() and Either.toValidatedNel() functions #2974

Merged
merged 7 commits into from
Mar 10, 2023

Conversation

Zordid
Copy link
Contributor

@Zordid Zordid commented Mar 10, 2023

Due to the deprecation of Validated and ValidatedNel it seems reasonable to symmetrically also deprecate the functions Either.toValidated() and Either.toValidatedNel().
This way, users see that they should avoid creating Validated objects.

Symmetrically, Validated.fromEither(...) had already been deprecated before.

@Zordid
Copy link
Contributor Author

Zordid commented Mar 10, 2023

@nomisRev in case you did not find it ;-)

Copy link
Member

@nomisRev nomisRev left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @Zordid for testing the migration and contributing to Arrow 🙌

@nomisRev nomisRev requested review from serras, franciscodr, a team and gutiory March 10, 2023 15:00
Copy link
Collaborator

@franciscodr franciscodr left a comment

Choose a reason for hiding this comment

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

Thanks, @Zordid!

Copy link
Member

@serras serras left a comment

Choose a reason for hiding this comment

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

Thanks very much!

@Zordid
Copy link
Contributor Author

Zordid commented Mar 10, 2023

If somebody would like to merge, that would be great - so far I cannot merge myself. Thanks!

@nomisRev nomisRev merged commit 1d8b314 into arrow-kt:main Mar 10, 2023
@Zordid Zordid deleted the deprecate_Either_toValidated branch March 13, 2023 11:13
@Zordid Zordid restored the deprecate_Either_toValidated branch March 13, 2023 11:14
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.

5 participants