Re:Go 1.16 Release Notes
by mseepgood on Wednesday February 17, 2021 @01:13AM
(#26163290)
Um, macros are a huge amount of magic. You basically give language design in the hands of users.
[ Parent
| on HN ]
The go authors could do what they originally did with generics: only let the compiler/stdlib have macros.
Also, go users have _already_ started parsing comments for magic strings, so it's not like setting an example of using comments is stopping users from doing this crap too.
A macro language which is defined in a clear and consistent way definitely seems less magic than a macro language which has no real definition, other than examples of comments.
The language relies heavily on comments from way way back.