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

Replace CtorDtor with simplified FromTo #1252

Merged
merged 1 commit into from
Mar 23, 2022

Conversation

joroKr21
Copy link
Collaborator

FromTo decouples and simplifies the strategy to generate the
from and to functions. This will let us more easily add
other strategies in the future and refine the choice of which
strategy to use in which case.

Backport of #1243

@joroKr21 joroKr21 self-assigned this Mar 20, 2022
@joroKr21 joroKr21 force-pushed the ctor-dtor branch 2 times, most recently from 9fb93b5 to 8797433 Compare March 23, 2022 09:23
FromTo decouples and simplifies the strategy to generate the
from and to functions. This will let us more easily add
other strategies in the future and refine the choice of which
strategy to use in which case.

This is a prerequisite for fixing milessabin#1059 but does not yet fix it.
The issue demonstrates that in certain cases we might want to use
fromApply and toGetters for case classes.
@joroKr21 joroKr21 merged commit afa492d into milessabin:series/2.3 Mar 23, 2022
@joroKr21 joroKr21 deleted the ctor-dtor branch March 23, 2022 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant