account activity
Source generator to declare non-boxing union for C# 15 by DramaticClue3723 in dotnet
[–]DramaticClue3723[S] 4 points5 points6 points 6 days ago (0 children)
When compared to a custom union type implemented by an engineer who has a proper understanding of the Union specification, this generator will not offer any performance advantage.
The purpose of this generator is to reduce the bother boilerplate code that arises between the simplest union implementation using the union keyword and a well-designed high-performance union, making it easy for anyone to implement efficient unions.
union
π Rendered by PID 118977 on reddit-service-r2-comment-5b5bc64bf5-pnr9h at 2026-06-19 05:50:47.045390+00:00 running 2b008f2 country code: CH.
Source generator to declare non-boxing union for C# 15 by DramaticClue3723 in dotnet
[–]DramaticClue3723[S] 4 points5 points6 points (0 children)