Basic pattern matching in C# 6
bearophile via Digitalmars-d
digitalmars-d at puremagic.com
Fri Aug 15 03:03:37 PDT 2014
A proposal for a basic pattern matching in C# 6:
http://www.infoq.com/news/2014/08/Pattern-Matching
But it's still rather limited:
>Under the current draft specification, there is no support for
>range checks. This means you cannot write patterns such as “a is
>Location( > 0, 1 to 5, <= 10)”. Nor is there support for
>matching elements in a list or enumeration.<
Bye,
bearophile
More information about the Digitalmars-d
mailing list