Pattern matching in D?

Nick Sabalausky via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 21 12:00:55 PDT 2016


On 10/20/2016 10:16 PM, Chris M. wrote:
> So I know you can do some pattern matching with templates in D, but has
> there been any discussion about implementing it as a language feature,
> maybe something similar to Rust's match keyword
> (https://doc.rust-lang.org/stable/book/patterns.html)? What would your
> guys' thoughts be?
>

What I've been really wanting for a long time is the one-two combo of 
Nemerle's variants and pattern matching:

https://github.com/rsdn/nemerle/wiki/Grok-Variants-and-matching



More information about the Digitalmars-d mailing list