Patching from another instance of the same case class #57
Labels
blocked
Ticket cannot be implemented because it depends on another ticker or external factor
dragons ahead
Task which requires handwriting compiletime reflection for Scala2&3 and/or updating the architecture
enhancement
Milestone
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: