News for hackers. Stuff that matters.
Re:Explore union types in C# 15 by grandpoobah on Wednesday April 08, 2026 @09:43PM (#47698390)
As someone who has been coding C# since the pre-generics days, this is the first syntax change which I strongly disagree with. I pretty much love every little bit of syntactic sugar you guys have added to the language. But this? This seems objectively illogical and just straight up ugly. It blows my mind that this is making it into the language, and it makes me worry about the future of C#.
Re:Explore union types in C# 15 by Metasyntactic on Thursday April 09, 2026 @01:59AM (#47699809)
How do you define "objectively illogical" here?
Re:Explore union types in C# 15 by LunicLynx on Thursday April 09, 2026 @04:47PM (#47709784)
Just guessing here: Putting something at index 0 that has nothing to do with the content.

I tend to agree, but I also didn’t try it.

I also think the 7% number is wrong. 0.5% seems more realistic. It’s just that you are not able to see the majority of the code. Not everything is checked in or on GitHub.