← Back
Nick Chapsas March 17, 2026 12m

Discriminated Unions Are Finally in .NET But

Summary

The transcript discusses the introduction of discriminated unions in C# .NET 11 preview 3, highlighting the new language feature that allows developers to create more flexible and type-safe result types. The speaker explains the technical implementation, noting that developers need to install .NET 11 preview 3 and enable the preview language version to use unions, despite potential front-end IDE errors. The practical takeaway is that unions provide a more efficient and clean way to represent different possible states or outcomes in code, such as success or error scenarios, potentially simplifying type handling and reducing complexity in software development.

View original episode ↗