Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Deprecate extensions methods for Set and SetK #84

Merged
merged 12 commits into from Jan 18, 2021

Conversation

Tylos
Copy link
Contributor

@Tylos Tylos commented Jan 12, 2021

No description provided.

@Tylos Tylos changed the title Deprecate extensions methods for Set and Setk Deprecate extensions methods for Set and SetK Jan 12, 2021
@Tylos Tylos force-pushed the ty-deprecate-extensions-setk branch from 840247a to 4b1904a Compare January 13, 2021 15:13
ReplaceWith(
"At<SetK<A>, A, Boolean>",
"arrow.optics.typeclasses.At", "arrow.core.SetK"),
DeprecationLevel.WARNING)
interface SetKAt<A> : At<SetK<A>, A, Boolean> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

☝️

Wondering the reason we can get rid of these interfaces now. Is it because we do not need @extension any longer?

Copy link
Member

Choose a reason for hiding this comment

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

They're public so users might be using them directly.

@Tylos Tylos force-pushed the ty-deprecate-extensions-setk branch from 4b1904a to 20a975f Compare January 14, 2021 08:31
Align with team decision to move all instances creation to the typeclass companion object.
Deprecate top level method used to obtain the instances before.
Replace usages in optics module.
@Tylos Tylos force-pushed the ty-deprecate-extensions-setk branch from 20a975f to b60c64d Compare January 14, 2021 09:25
@Tylos Tylos force-pushed the ty-deprecate-extensions-setk branch from b60c64d to 558d058 Compare January 14, 2021 12:12
@Tylos Tylos marked this pull request as ready for review January 14, 2021 12:36
@Tylos
Copy link
Contributor Author

Tylos commented Jan 15, 2021

@franciscodr thanks for the suggestions, all changes have been applied 🥳

@franciscodr
Copy link
Contributor

Thanks @Tylos!

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.

Looks good. Think there is a copy-paste mistake in the message.

arrow-optics/src/main/kotlin/arrow/optics/std/set.kt Outdated Show resolved Hide resolved
arrow-optics/src/main/kotlin/arrow/optics/std/set.kt Outdated Show resolved Hide resolved
@nomisRev
Copy link
Member

Thanks @Tylos!

Co-authored-by: Simon Vergauwen <nomisRev@users.noreply.github.com>
Co-authored-by: Simon Vergauwen <nomisRev@users.noreply.github.com>
@Tylos
Copy link
Contributor Author

Tylos commented Jan 15, 2021

@nomisRev you are right, pasted twice than I copied 😅

@Tylos Tylos merged commit cc6d368 into master Jan 18, 2021
@Tylos Tylos deleted the ty-deprecate-extensions-setk branch January 18, 2021 09:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants