Pattern matching in D?

Chris M. via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 20 19:16:44 PDT 2016


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?




More information about the Digitalmars-d mailing list