Structural exhaustive matching

Jadbox via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Apr 21 08:36:27 PDT 2015


What's the best equivalent to Rust's structural enum/pattern 
(match)ing? Is it also possible to enforce exhaustive matches? 
Basically, I'm curious on what the best way to do ADTs in D.


More information about the Digitalmars-d-learn mailing list