Posts Tagged

.net

Union Types in C#: Implementing What’s Missing

In the evolving landscape of programming languages, type systems continue to be a fundamental differentiator in how we express our code’s intent. One powerful feature that many modern languages offer, but C# has traditionally lacked, is union types (also known as sum types or discriminated unions). Today, we’ll explore what union types are, why they…

Read More