|
|
|
|
|
by ilyt
1073 days ago
|
|
> As a Go programmer I always thought the generics complaint was kind of silly in practice — complicated code should be simplified and made more concrete, not more generic. I guess you have never written a library. It's extremely useful there, stuff like "generic function that runs a channel thru X workers doing f() on it" is now easily possible with full type safety. > Nevertheless I think people implementing them in their own projects is basically code smell and they are a symptom of poorly thought-out code rather than excellent code. You can say that about literally any feature used by the incompetent. But overall yes, they are far more useful for writing libraries than actual applications |
|