Get the latest tech news

Union types in C# 15


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.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Union types

Union types

Related news:

News photo

Union types ('enum types') would be complicated in Go