-
Notifications
You must be signed in to change notification settings - Fork 28
Contramap, IR and Source printing improvements #340
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
Conversation
✅ Deploy Preview for magical-donut-e8221d ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -0,0 +1,8 @@ | |||
package org.finos.morphir.datamodel | |||
|
|||
sealed trait UnionType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the difference between SealedTrait
, Enum
, and Sum
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I used reflection to construct them I needed to be able to tell Scala 3 Enum and SealedTrait apart. Now since I use Mirror.ordinal it's not needed. I'll keep in mind to remove one of the cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
contramap
and various other deriver and MDM helper functions.Deriver.scala
because the latter is differently defined for Scala 2 and Scala 3.Migration Guide:
org.finos.morphir.datamodel.SpecificDeriver
withorg.finos.morphir.datamodel.CustomDeriver
.org.finos.morphir.datamodel.{given}
should still work in Scala 3 (since implicits are automatically imported via the given-import mechanic. It will also now work to callorg.finos.morphir.datamodel._
.