Explore union types in C# 15 #dotnet
Explore union types in C# 15 - .NET Blog

C# 15 introduces union types — declare a closed set of case types with implicit conversions and exhaustive pattern matching. Try unions in preview today and see the broader exhaustiveness roadmap.

.NET Blog
@vincentbiret one problem I have though: it's easier to integrate in our codebase at work but makes it more difficult to argue for using #fsharp. On the other hand I didn't manage to go forward with #fsharp for years now...

@netbird I've never used f# in production, even when it had a huge advantage for a number of scenarios.

But yes, that's been a long awaited feature, especially in the API space