mapping opaque types #692
Replies: 1 comment
-
So, I would recommend not using raw
which is why no library provides a support for them OOTB. On the other hand, all these newtype libraries (Monix Newtype, Neotypes, Refines4s, Iron, etc) enforce one way of defining opaque type, which allows them to provide some type classes standardizing how you can work with them - which enables Chimney to integrate with them if one wanted to perform Alternatively, one can try to use ScalaPB type mappers so that protobufs would use I have to mention however, that |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I like to use typed identifiers in my model layer, so was wondering what the best approach you be to map these. Assuming the following:
My protos would include this in the
Substance
, using a simpleuint64
as I wouldn't want to wrap that with anything as we want to make external clients as simple as possible. E.g.Beta Was this translation helpful? Give feedback.
All reactions