Repository navigation
All-Struct Union Types Should Prefer Non-Boxing #138005
Unanswered
TheBrambleShark
asked this question in
Ideas
Replies: 1 comment
|
All discussions about unions (including boxing) are here: dotnet/csharplang#9663 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
This is a proposal to make some changes to the existing code generation for unions. Specifically:
[Union(NonBoxing = true)].I don't believe this behavior should differ whether the union itself is a struct or a class, but if there are compelling reasons to always box on class unions, I'm all ears.
After some discussion I'll update this into a proper proposal. This post is mostly to figure out edge cases and to discuss an implementation direction.
All reactions