On 2015-10-25 20:00, John Colvin wrote:
Without having looked at this in detail, phobos should have a good generic implementation of pattern matching, so you should consider creating a pull request (std.functional would be the natural home I think).
I've been waiting for this PR [1] to get merged before implementing pattern matching as a library function.
[1] https://github.com/D-Programming-Language/dmd/pull/5201 -- /Jacob Carlborg