-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Patching from another instance of the same case class #57
Comments
Sounds good 👍 |
Thank you @krzemin. Upon further thought, the patcher could be abstracted away for reusability (or reusability of the code that applies it):
(Might make sense to curry the application too). |
The functionality is available on master, see testing-snapshots if you want to help us testing it (and checking if the documentation makes sense) before we'll release it (I want to do a few much smaller things before the release). |
Thank you for this great library! It's incredibly useful together with Diode+React.
Here's a suggestion, which I think naturally falls within the domain of chimney: Being able to patch a case class instance from another instance, specifying the fields to patch. It can be seen as nicer syntax for
.copy(...)
specifying override fields from the other instance.For example:
which would be equivalent to:
Thank you!
The text was updated successfully, but these errors were encountered: