Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
9rx
· 1y ago · 0 comments
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.
Comments
[–]
ropejumper
1y ago
On
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.