Yesterday, I shared some spicy takes. A few were particularly controversial—most notably, that I correct Gif the correct way (with a soft G)—but I also got a lot of emails asking me to elaborate on a few of them.
Today, I wanted to talk about how tabs are objectively better than spaces. This won’t take long.
Tabs let you define how big you want each indent to be, and spaces do not.
I wish every language had a gofmt, this is such a non-debate (tabs are indentation, spaces are alignment)
rustfmt
And over gofmt, rustfmt lets you set settings for the project. Keeps the code looking how I want, and contributers don’t have to care.
The absence of settings in gofmt is a feature. The kind of basic formatting it handles is not worth having opinions about.