Option types and pattern matching.
TheFlyingFiddle via Digitalmars-d
digitalmars-d at puremagic.com
Sun Oct 25 11:54:45 PDT 2015
On Sunday, 25 October 2015 at 18:23:42 UTC, Dmitry Olshansky
wrote:
> I humbly believe that D may just add special re-write rule to
> the switch statement in order to allow user-defined switchable
> types. This goes along nicely with the trend - e.g. foreach
> statement works with anything having static range interfaces or
> opApply.
I don't think I understand this, could you elaborate?
More information about the Digitalmars-d
mailing list