|
|
|
|
|
by tptacek
1728 days ago
|
|
That kind of code is generally non-idiomatic in Go. An experienced Go programmer looks at something that is generic over types and does something interesting and instinctively asks "what gives, where are the dead rabbits?". I'm less excited about generics. There's a cognitive cost to them, and the constraint current Go has against writing type-generic code is often very useful, the same way a word count limit is useful when writing a column. It changes the way you write, and often for the better. |
|
I am by no means a Go basher, it is one of my favorite languages. But I eagerly await generics.