How to make Rust trait like feature in dlang ?
lili
akozhao at tencent.com
Mon Jun 17 10:25:57 UTC 2019
On Monday, 17 June 2019 at 09:23:35 UTC, Guillaume Piolat wrote:
> On Sunday, 16 June 2019 at 15:56:41 UTC, lili wrote:
>> How do this, can dlang support conception like feature.
>
> Not only D has static polymorphism, but it does so with open
> capabilities / "DbI" / duck-typing-at-compile-time.
>
> A real eye opener is this talk:
> https://www.youtube.com/watch?v=LIb3L4vKZ7U
>
> Why do you think C++ took "static if"?
Can't get your point. think what? C++ not support conception now.
D not yet. But conception is really powerful. So is dlang will
support it.
for example: struct allow inherited interface, implement
conception.
More information about the Digitalmars-d
mailing list