Discriminated Unions Are Finally in .NET But
Nick Chapsas walks through discriminated unions (union types) in C# 15 and .NET 11, now merged in preview, and highlights the trade-offs and “gotchas” to keep in mind.
Full summary based on transcript
What the video is about
Nick Chapsas showcases discriminated unions in C# 15 and .NET 11 after the feature was merged in preview.
Discriminated unions in C#/.NET (preview)
- The video focuses on the new union/discriminated union capability being introduced to the language/runtime.
- Nick frames it as a long-awaited feature, but with important caveats (the “but” in the title).
Notes and links mentioned
- Dometrain discount: https://dometrain.com/courses/?ref=nick-chapsas&promo=youtube&coupon_code=HANDSON30
- GitHub: https://github.com/Elfocrash
- Twitter/X: https://twitter.com/nickchapsas
- LinkedIn: https://www.linkedin.com/in/nick-chapsas