switch()
Andrej Mitrovic
andrej.mitrovich at gmail.com
Mon Feb 17 08:10:51 PST 2014
On 2/17/14, Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:
> A "match" statement that figures type patterns and introduce names and
> all that - that might be more interesting (though being far from a game
> changer). But that's not quite what has been proposed in this thread.
There are some interesting related Phobos pulls:
Add functional style regex pattern-matching:
https://github.com/D-Programming-Language/phobos/pull/1392
Add functional pattern matching for object references:
https://github.com/D-Programming-Language/phobos/pull/1266
Add a functional switch function:
https://github.com/D-Programming-Language/phobos/pull/1259
More information about the Digitalmars-d
mailing list