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.
- Structural exhaustive matching Jadbox via Digitalmars-d-learn
- Re: Structural exhaustive matc... bearophile via Digitalmars-d-learn
- Re: Structural exhaustive matc... Justin Whear via Digitalmars-d-learn
- Re: Structural exhaustive matc... weaselcat via Digitalmars-d-learn
- Re: Structural exhaustive matc... Jacob Carlborg via Digitalmars-d-learn
- Re: Structural exhaustive matc... Martin Nowak via Digitalmars-d-learn
- Re: Structural exhaustive ... weaselcat via Digitalmars-d-learn