3 ms·
... until you find a bug duplicated x times in all your versions and you missed one of the x different unit tests to test them all ? IMHO when you are fighting
by gbin 13y ago
... until you find a bug duplicated x times in all your versions and you missed one of the x different unit tests to test them all ?
IMHO when you are fighting your language to avoid code duplication, you either use it incorrectly or something is wrong about the language.
To be honest, I only encounter rare cases where, dammit I would really love generics.
And the Go team never said no to it, they just have more urgent stuff to do first.
[Disclaimer: Googler here using Go, yaddi yadda, this is just my opinion]