Re:The ecosystem of the Go programming language
by shaan7 on Monday March 22, 2021 @09:28AM
(#26540463)
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/
[ Parent
| on HN ]
Re:The ecosystem of the Go programming language
by abatilo on Monday March 22, 2021 @10:32AM
(#26541359)
Wasn't the ability to add a //go:generate comment enough to make it easy to re-generate anything that you needed?
Re:The ecosystem of the Go programming language
by isaiahg on Monday March 22, 2021 @01:53PM
(#26544206)
Generation 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.