3 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 3mo 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 3mo 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 3mo ago[deleted]
- deleted 3mo ago[deleted]