Basic pattern matching in C# 6
Kagamin via Digitalmars-d
digitalmars-d at puremagic.com
Fri Aug 15 05:46:07 PDT 2014
On Friday, 15 August 2014 at 12:01:59 UTC, Idan Arye wrote:
> Pattern matching will always be awkward in languages where the
> data types were not designed to be pattern-matched. In that
> regard, the main difference between languages like C# and D to
> languages like ML and Haskell is that in the former the order
> of fields is an implementation detail while in the later it's
> an actual part of the type's interface definition.
Ordering works in D: http://dpaste.dzfl.pl/64b453444ecc
More information about the Digitalmars-d
mailing list