Why does D not have generics?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Tue Jan 12 23:27:22 UTC 2021


On Tuesday, 12 January 2021 at 23:10:30 UTC, Paul Backus wrote:
> The goal is to make it produce a compile-time error given only 
> the *definition* of `pop_second`--so, no main function, no unit 
> tests, and no other usage code.

That's a bit pedantic. And it can never work because of static 
foreach.





More information about the Digitalmars-d mailing list