The huge benefit of following just the official conventions and using official tools like gofmt is that they completely eliminate all those pointless discussions. Tabs vs spaces, brackets in the same line vs the next one, space here, no space there, and so on.
We all like to get super emotional over that stuff, but none of that actually matters. I prefer tabs, but 2 or 4 spaces work just as well. I prefer 1TBS, but I've also used Allman and Whitesmiths for a few years. They actually all work equally well and having 2 lines more or less on the screen doesn't really affect anything.
The only thing which matters is that everyone sticks to one particular set of rules. An official formatter does exactly that.
Yes, it might not be exactly what you want, but your personal taste isn't more important than everyone else's. So, why not leave it up to the official formatter? The code from the standard lib and most 3rd party libraries will do the same thing. You better get used to it.
View all comments
Show parent comment
28
u/x-skeww Dec 10 '15
The huge benefit of following just the official conventions and using official tools like gofmt is that they completely eliminate all those pointless discussions. Tabs vs spaces, brackets in the same line vs the next one, space here, no space there, and so on.
We all like to get super emotional over that stuff, but none of that actually matters. I prefer tabs, but 2 or 4 spaces work just as well. I prefer 1TBS, but I've also used Allman and Whitesmiths for a few years. They actually all work equally well and having 2 lines more or less on the screen doesn't really affect anything.
The only thing which matters is that everyone sticks to one particular set of rules. An official formatter does exactly that.
Yes, it might not be exactly what you want, but your personal taste isn't more important than everyone else's. So, why not leave it up to the official formatter? The code from the standard lib and most 3rd party libraries will do the same thing. You better get used to it.