3 ms·
C# has a lot of pattern-matching support today, including an expression-switch form: https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/p
by WorldMaker 4y ago
C# has a lot of pattern-matching support today, including an expression-switch form:
https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/pattern-matching https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals...
C# can fake algebraic data types in some ways/some cases. Though if you are expecting to do a lot of it you are still better off in F# or C#/F# hybrid projects. (F# of course being a proper ML-family language.)