Stop Writing _ => throw for Cases That Can't Happen. C# 15 Has Unions
DEV Community
Stop Writing _ => throw for Cases That Can't Happen. C# 15 Has Unions
C# 15 adds union types, so the compiler knows every case and warns you the day someone adds a new one.
0 comments
No comments yet.