Unio: High-Performance Discriminated Unions for C#
C# is a powerful language, but there is one road it has not yet fully paved: native discriminated union types. Developers have been working around this absence for years, typically choosing between throwing exceptions for non-exceptional paths, returning nullable values, using out parameters, or layering custom wrapper classes on top of every service boundary. Each of these approaches carries a cost - in clarity, type safety, or runtime efficiency.



















