Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
usrbinbash
2y ago
0 comments
Share
The fact that Go doesn't have C's macros alone already makes it a lot simpler.
And please don't get me started on writing concurrent code in C.
0 comments
default
newest
oldest
EnergyAmy
2y ago
`//go:generate` is far worse than C's macros
saturn_vk
2y ago
That's just a glorified make rule. There's nothing inherently hidden or complex that it generates, unlike macros
majewsky
2y ago
I 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.
j
/
k
navigate · click thread line to collapse