Interfaces, traits, concepts, and my idea for a DIP

ChangLong via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 28 18:25:26 PDT 2015


On Tuesday, 28 July 2015 at 12:49:17 UTC, Atila Neves wrote:

> So... instead of having traits / concepts, what I wanted from D 
> is to be able to do this:
>
> struct MyRange: isInputRange { ... }
>
> or
>
> struct MyRange: static isInputRange { ... } // that way classes 
> could do this too

+1

Concept like this can help a lot of people will not be scared off 
by the complexity of Dlang



More information about the Digitalmars-d mailing list