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 #1243

Merged
merged 1 commit into from
Feb 13, 2022
Merged

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.

This is a prerequisite for fixing #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 force-pushed the ctor-dtor branch 3 times, most recently from 0ec7f81 to ee11077 Compare February 13, 2022 12:40
`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.
Copy link
Owner

@milessabin milessabin left a comment

Choose a reason for hiding this comment

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

This is much nicer!

@joroKr21 joroKr21 merged commit dc053c7 into milessabin:main Feb 13, 2022
@joroKr21 joroKr21 deleted the ctor-dtor branch February 13, 2022 15:40
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.

2 participants