|
|
|
|
|
by metafex
4296 days ago
|
|
Lack of generics seems to always be the argument against Go. I have been coding in Go for over a year now nearly every day and it really became an annoyance only once: CRUD operations in a web-service expecting JSON-objects.
That's literally the only time where the code-duplication was a problem for me. Now, not everything else has been all good (mostly minor issues with community libs), but the one thing that never ceases to amaze me with go is that: You hammer out a few hundred lines of code, compile, fix those few syntax errors, compile again and 9 out of 10 times your code just works.
The simplicity of the language is the key. It's a tool that feels right and gets the damn job done. |
|
This is why I find it unbelieveable when Go users tell me "I never need generics". I look at their code and see
repeated over and over again and can't help it but cringe