Replies: 1 comment
-
@jarle-moe in mapster only Value will be copied
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I made an API proposal for the .NET BCL yesterday and in retrospect I was probably a bit naive in my approach.
Still, I'd be happy for some feedback on it..
If it's just a terrible idea in general, I'd also accept that 😅
dotnet/runtime#101023
TLDR; I'd like the standard library to have some semantic understanding of wrappers; short example :
In the case of Mapster, my thought is that the library would automatically understand that what it should do with that type is copy the wrapped value, and not the enclosing object. In other words, instead of
Id = 42
it should recognize it as just42
, without individual programmers needing to implement this logic manuallyBeta Was this translation helpful? Give feedback.
All reactions