-
-
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
TransformInto Trait #405
Comments
Yes: there is no non-controversial way to do it.
So, it would be:
Perhaps if #192 would be implemented, than you could provide a function constructing such trait yourself and it would be non-ambiguous how it works. With features we have now we do not add support for case which would give users more troubles than benefits. Of course the above is only about "open" |
Thank you so much for explaining it. And it's easy to go around, we can create a case class that extends the trait. case class Def1Container(toto : Option[String]) extends Def1 |
👋
Is there any specific reason to not be able to transformInto a Trait ?
Use case
Sometimes common data models are defined as traits, turning into one can help to manage differences in required fields.
Work around
The text was updated successfully, but these errors were encountered: