Why does D not have generics?
Q. Schroll
qs.il.paperinik at gmail.com
Tue Jan 12 18:29:59 UTC 2021
On Tuesday, 12 January 2021 at 17:52:16 UTC, Paul Backus wrote:
> You can do it in D too, if you use an interface or a
> type-erasure library like Atila's tardy. But it requires
> additional runtime overhead compared to the loosely-checked
> template version. In Rust, on the other hand, you get strict
> type checking of generic code with zero overhead at runtime.
I'll have a closer look at Tardy. I previously misunderstood it
to be a different language and not a DUB package. Thank you.
More information about the Digitalmars-d
mailing list