How to make Rust trait like feature in dlang ?

Atila Neves atila.neves at gmail.com
Tue Jun 18 17:09:16 UTC 2019


On Sunday, 16 June 2019 at 15:56:41 UTC, lili wrote:
> Hi, guys:
>    I really like Rust trait feature. Use it can implement 
> duck-type simple.
>    base on inherited OO is complex and hard, because you need 
> to design inherited tree well.
>    and this is not easy. In real word need runtime polymorphic 
> is uncommon. lots of is just need compile time polymorphic.
>
> [...]

https://github.com/atilaneves/concepts


More information about the Digitalmars-d mailing list