On 2/17/14, Andrei Alexandrescu <[email protected]> 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
