News for hackers. Stuff that matters.
Re:Go is Google's language, not ours by satyenr on Wednesday May 22, 2019 @03:17PM (#19984495)
IMO, boilerplate source code shouldn’t be generated at all — the tool chain should directly emit the required object code. And code generation shouldn’t require a different language — or special comment syntax.
Re:Go is Google's language, not ours by erik_seaberg on Wednesday May 22, 2019 @07:55PM (#19986908)
Depends on the toolchain. Everybody knows how to generate ugly source files, but it takes more effort to add AST nodes during compilation (or symbol table entries with types plus object code) and might lead to errors nobody understands how to fix (because you can't read the declaration of the thing you're trying to interact with).