|
|
|
|
|
by 15155
3898 days ago
|
|
> It is not like someone is going to manually write out identical functions twenty times for each type they want to support. I'll stop you right there. Have you seen a modern Go codebase? They most certainly duplicate the simplest of functions, resort to `go generate`, or use reflection. |
|
I _think_ what you are trying to say is that templates in Go are less convenient than in some other languages. That is a completely fair assertion. But the idea of having to type `go generate` occasionally adding significant man hours to a project seems a little far fetched. You could even:
I completely understand the appeal of templates/generics being a first-class language feature. Not even the Go authors themselves discount the usefulness. I don't understand why the lack of them is adding so many more man-hours to your projects? The overhead of working around the lack of them should not be that significant, even if less pleasant.