-
Notifications
You must be signed in to change notification settings - Fork 448
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
Conversation
@nomisRev in case you did not find it ;-) |
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Validated.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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 🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @Zordid!
arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much!
…ther.kt Co-authored-by: Alejandro Serrano <trupill@gmail.com>
…lidated.kt Co-authored-by: Simon Vergauwen <nomisRev@users.noreply.github.com>
If somebody would like to merge, that would be great - so far I cannot merge myself. Thanks! |
Due to the deprecation of
Validated
andValidatedNel
it seems reasonable to symmetrically also deprecate the functionsEither.toValidated()
andEither.toValidatedNel()
.This way, users see that they should avoid creating
Validated
objects.Symmetrically,
Validated.fromEither(...)
had already been deprecated before.