2 ms·
Lombok takes care of most of such boilerplate in Java. Code generating tools for Go also exist. The difference is that they produce source code, while things l
by nine_k 9y ago
Lombok takes care of most of such boilerplate in Java.
Code generating tools for Go also exist. The difference is that they produce source code, while things like Lombok, or any reasonable macro system, never surface intermediate code, unless explicitly asked.
- pebers 9y agoThat's still solving the problem by working around the language though. And surely it's the job of your build system to automate and hide the codegen process? Admittedly go build & go generate don't do that well, but they aren't the only options out there.