4 ms·
I've seen so many abuses of interface{} in packages, especially for containers, that anything that can alleviate this problem is a step in the right direction.
by 13415 6y ago
I've seen so many abuses of interface{} in packages, especially for containers, that anything that can alleviate this problem is a step in the right direction. Even when they are not strictly necessary I expect generics to improve a number of packages. Then there is also the potential performance benefit, since generics should be strictly compile-time features - at least I hope that's the case for Go, I haven't checked the details of the proposal.
- Gibbon1 6y agoDumb question, if you change an interface{} in go do you have to change everything based on it?