Rant after trying Rust a bit

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 23 13:44:22 PDT 2015


On 7/23/2015 12:50 PM, Tobias Müller wrote:
> TBH I'm very surprised about that argument, because boolean conditions with
> version() were dimissed for exactly that reason.

I knew someone would bring that up :-)

No, I do not believe it is the same thing. For one thing, you cannot test the 
various versions on one system. On any one system, you have to take on faith 
that you didn't break the version blocks on other systems.

This is quite unlike D's template constraints, where all the combinations can be 
tested reliably with a unittest{} block.



More information about the Digitalmars-d mailing list