| ▲ | nasretdinov 8 hours ago | ||||||||||||||||
Generic interfaces are going to be implemented later too if I'm reading correctly. So no real surprises there :). I guess the only surprise yet is that generic interfaces aren't supported, so generic methods physically can't satisfy any interface | |||||||||||||||||
| ▲ | kbolino 3 hours ago | parent | next [-] | ||||||||||||||||
Generic interfaces already exist. Generic interface methods, which would be relevant, are not planned. The reason is outlined early in the proposal: nobody knows how to implement them efficiently. Rust has the same problem, for what it's worth: dispatchable functions on dyn-compatible traits cannot be generic [1]. [1]: https://doc.rust-lang.org/reference/items/traits.html#r-item... | |||||||||||||||||
| |||||||||||||||||
| ▲ | ncruces 6 hours ago | parent | prev [-] | ||||||||||||||||
I didn't see anything beyond "this doesn't prevent us from doing it" yet. Did you? | |||||||||||||||||