2 ms·
One big problem with macros is that they make it very difficult to build good tools. You can't really understand the meaning of any particular piece of syntax w
by cageface 8y ago
One big problem with macros is that they make it very difficult to build good tools. You can't really understand the meaning of any particular piece of syntax without completely evaluating any macros that might be in use.
- Groxx 8y agoThat sounds exactly like what a compiler has to do. And what all type-aware Go tools currently have to do. So we're already doing that, we just have no language-level support for doing so, so we have incredibly less-capable workarounds like makefiles and go:generate.