Y
Hacker News
new
|
ask
|
show
|
jobs
by
TylerE
4433 days ago
The thing I don't get...if braces are mandatory (Good), why keep the now completely, unambiguously, irrelevant () around the cond?
3 comments
kyrra
4433 days ago
If you ran the code through gofmt, it would remove the () around the cond for you. I code go in SublimeText with GoSublime. On every save it runs the file through gofmt and reformats it for me. Keeps my code looking pretty with very little effort.
link
wtbob
4433 days ago
You don't need those parens in Go, and go fmt will in fact remove them/
link
CasualSuperman
4433 days ago
They're actually not required in Go.
link