Get the latest tech news

.NET (OK, C#) finally gets union types


In this post I discuss the support for union types released in .NET 11, how they're implemented, the choices made, and how to create your own

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Union types

Union types

Photo of dotnet

dotnet

Related news:

News photo

Union types in C# 15

News photo

Run a C# file directly using dotnet run app.cs

News photo

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