logoalt Hacker News

Mond_yesterday at 10:01 PM1 replyview on HN

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.)


Replies

thwartedyesterday at 10:08 PM

//go:xyz is dedicated syntax that is compatible with both the language spec and other toolchains that don't know about it.

show 1 reply