Do we need Discriminated Unions in C# 9?

1 points by dotnet2222 ↗ HN
In this video ( https://youtu.be/ABfZfTSsyt4 ) I have learn that Enum and Discriminated Unions are similar, but they are not the same. Enum can be combined and Discriminated Unions are for the heterogeneous data. I still can not understand. Do we really need Discriminated Unions in C# or this proposal is a clone from F#? is C# OOP or it is now a multiple paradigms programming language?

0 comments

[ 3.0 ms ] story [ 33.3 ms ] thread

No comments yet.