-
Notifications
You must be signed in to change notification settings - Fork 16
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
Type Adapters #76
Comments
Wouldn't this work by simply having a |
Hmm, yeah that could be an interesting idea. My only worry is the look up time. And naming clashes, as there could be the same Date on multiple places. Although, I guess we can determine it by the return type too. And then we don't even need to name it the same. But that would add even more potential clashes. Need to have a play around with this. |
Does KopyKat already know how to use |
In principle it should work out of the box, since value classes are just as any other class. If you find a specific case which is not covered, we're happy to look at it and add support for it :) |
When creating copy constructors it would be useful to have mappings between types that are no exactly the same.
For instance, the representation of a date on the network layer may be a string, but it may be a date on the domain.
We could define strategies to work with such conventions:
The text was updated successfully, but these errors were encountered: