News for hackers. Stuff that matters.
Re:What's new in the .NET 11 runtime by YuechenLi on Wednesday November 11, 2026 @09:14AM (#50453682)
You are right about the pattern matching, so it's on me that I didn't write clearly enough, what I meant is that I wish C# had Rust's compiler enforced exhaustive pattern matching over enums and the ability to carry data payloads:

https://doc.rust-lang.org/book/ch06-01-defining-an-enum.html

Instead of .NET 11's more awkward (imo) `union` form.

https://learn.microsoft.com/en-us/dotnet/csharp/language-ref...

There are no comments on this comment yet.