Rant after trying Rust a bit

jmh530 via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 23 10:27:56 PDT 2015


On Thursday, 23 July 2015 at 16:54:52 UTC, jmh530 wrote:
> This is cool and I wasn't aware that you could do this. I was 
> trying to use std.traits' InterfacesTuple to test that a class 
> had a particular interface.
>

Again, I just found a reference to this behavior in the template 
section where it talks about Argument Deduction. No idea it was 
there. There were two things that I thought Rust's traits could 
do, but D's interfaces couldn't do. Now it seems like D's 
interfaces could do both of them.


More information about the Digitalmars-d mailing list