4 ms·
> interfaces still can’t declare type-parameterized methods What would an implementation look like? Wouldn't it be quite different from the existing one becaus
by fweimer 2mo ago
> interfaces still can’t declare type-parameterized methods
What would an implementation look like? Wouldn't it be quite different from the existing one because it has to rely heavily on indirection because (limited) monomorphimization is not possible?
- cherryteastain 2mo agoProbably won't/cannot be ımplemented. C++ and Rust disallow the analogues of this (templated virtual methods/dyn with a trait containing methods taking type parameters) as well.
- deleted 2mo ago[deleted]
- deleted 2mo ago[deleted]