4 ms·
Funny enough, Go’s grammar does require semicolons. It avoids needing them typed in the source code by automatically adding them on each newline before parsing.
by 9rx 2y ago
Funny enough, Go’s grammar does require semicolons. It avoids needing them typed in the source code by automatically adding them on each newline before parsing.
- ropejumper 2y agoOn almost every newline, which is the reason why this doesn't work: func thing() { I quite like this approach. It's very simple and consistent, and once you know how it works it's not ever surprising.