3 ms·
> Likewise Java's OOP enums (basically singletons) are something I miss too. C# guys are working on adding full-fledged pattern matching to the language: http
by int_19h 10y ago
> Likewise Java's OOP enums (basically singletons) are something I miss too.
C# guys are working on adding full-fledged pattern matching to the language:
https://github.com/dotnet/roslyn/blob/features/patterns/docs/features/patterns.md https://github.com/dotnet/roslyn/blob/features/patterns/docs...
and there's a concurrent proposal for ADTs:
https://github.com/dotnet/roslyn/issues/6739 https://github.com/dotnet/roslyn/issues/6739
Given the velocity of adding new features in C# these days, these will come sooner rather than later (indeed, some basic pattern matching is already in C# 7).