What's the deal with the massive duplication in std.meta?
Walter Bright
newshound2 at digitalmars.com
Sat May 1 08:08:26 UTC 2021
On 4/30/2021 3:03 PM, Andrei Alexandrescu wrote:
> ```D
> template staticIndexOf(T, TList...)
> {
> enum staticIndexOf = genericIndexOf!(T, TList);
> }
>
> template staticIndexOf(alias T, TList...)
> {
> enum staticIndexOf = genericIndexOf!(T, TList);
> }
> ```
I'm curious why genericIndexOf is not renamed to staticIndexOf and the previous
staticIndexOf templates removed.
> This code should have NEVER been accepted upon review. Instead, the reviewers
> should have filed a TOP PRIORITY bug report to dmd "Not binding types to alias
> templates forces unscalable code duplication for all typelist primitives".
>
> This needs to be fixed, and very urgently.
Please file a bug report!
More information about the Digitalmars-d
mailing list