|
|
|
|
|
by ilyt
1292 days ago
|
|
It's real shame it's kinda bad language for it. Looking at what people did with Rust macros it's shame that Go code generation story is either "just run some random binaries to compile stuff" or "put code instructing the compiler to do stuf in fucking comments" And I say it without being sarcastic but Go makes me miss C preprocessor and nothing should make anyone miss C preprocessor. |
|
Funny considering how Rust does stuff.
Both approaches have pros and cons. One either digs through a shitload of macros, or commits explicit auto generated code.