4 ms·
Code generation only solved part of the problem - saving the trouble of having to write repetitive code. It does not solve the maintainability problem because i
by shaan7 6y ago
Code generation only solved part of the problem - saving the trouble of having to write repetitive code. It does not solve the maintainability problem because if something needs to change then you need to manually change all the generated code.
I have been using Go since last ~6 years and I'm really excited that the only pain point I had with Go will soon go away \o/
- abatilo 6y agoWasn't the ability to add a //go:generate comment enough to make it easy to re-generate anything that you needed?
- isaiahg 6y agoGeneration is a rather big solution for sometimes small problems. For many things like utility functions I think generics are much more readable and easier to understand while go generate would be heavy handed.