News for hackers. Stuff that matters.
Re:Go generics proposal moves to “likely accept” by 13415 on Wednesday February 03, 2021 @04:43PM (#26019558)
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.
Re:Go generics proposal moves to “likely accept” by Gibbon1 on Wednesday February 03, 2021 @05:52PM (#26020302)
Dumb question, if you change an interface{} in go do you have to change everything based on it?