3 ms·
I have been trying to read planning docs, github issues etc and I still can't find if my one pet feature is planned or requested for C#: proper exhaustive patte
by alkonaut 10y ago
I have been trying to read planning docs, github issues etc and I still can't find if my one pet feature is planned or requested for C#: proper exhaustive pattern matching for records/tuples.
Tuples, records, etc are all find and dandy, but what I want is propoer safety when adding a variant, otherwise they don't really help me reason about my code.
- AndrewDucker 10y agoIt didn't make C# 7. Will hopefully be in C# 8: https://www.infoq.com/news/2016/05/csharp7-pattern-matching-removed https://www.infoq.com/news/2016/05/csharp7-pattern-matching-...