3 ms·
`//go:generate` is far worse than C's macros
by EnergyAmy 3y ago
`//go:generate` is far worse than C's macros
- saturn_vk 3y agoThat's just a glorified make rule. There's nothing inherently hidden or complex that it generates, unlike macros
- majewsky 3y agoI have written Go professionally for close to 10 years. The only time I encountered go:generate is in yacc parsers deep within libraries. A regular Go developer might go for years without realizing that it even exists. Compare this to C macros.