News for hackers. Stuff that matters.
Re:Space Monkey dumps Python for Go by TylerE on Tuesday April 22, 2014 @04:22PM (#7630175)
The thing I don't get...if braces are mandatory (Good), why keep the now completely, unambiguously, irrelevant () around the cond?
Re:Space Monkey dumps Python for Go by kyrra on Tuesday April 22, 2014 @05:16PM (#7630503)
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.
Re:Space Monkey dumps Python for Go by wtbob on Tuesday April 22, 2014 @04:36PM (#7630267)
You don't need those parens in Go, and go fmt will in fact remove them/
Re:Space Monkey dumps Python for Go by CasualSuperman on Tuesday April 22, 2014 @04:33PM (#7630245)
They're actually not required in Go.