News for hackers. Stuff that matters.
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.
Re:Go 1.16 Release Notes by TheDong on Wednesday February 17, 2021 @01:24AM (#26163347)
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.

Re:Go 1.16 Release Notes by dvirsky on Wednesday February 17, 2021 @03:50AM (#26164188)
The language relies heavily on comments from way way back.
Re:Go 1.16 Release Notes by nikolay on Wednesday February 17, 2021 @01:28AM (#26163364)
Yeah, it's magic, but not black magic; it's a civilized way of doing things like these.