logoalt Hacker News

0x696C6961yesterday at 9:48 PM1 replyview on HN

The //go:xyz comments are an established pattern in the Go tooling.


Replies

Mond_yesterday at 10:01 PM

This is begging the question. Yes, but why did they do that over dedicated syntax?

(My personal theory is that early go had a somewhat misguided idea of simplicity, and preferred overloading existing concepts with special cases over introducing new keywords. Capitalization for visibility is another example of that.)

show 1 reply