3 ms·
Linux kernel is 1 tab Golang also mandates tabs I think
by raverbashing 7y ago
Linux kernel is 1 tab
Golang also mandates tabs I think
- timclark 7y agoFrom memory go fmt will use both tabs and spaces when formatting but it uses tabs for indentation from the left margin and uses spaces for some alignment of variables - so it doesn't introduce any crazy interleaving of tabs and spaces which I like.
- majewsky 7y agoCorrect. And frankly, that's the logical choice. It allows to use different tabwidth for representation, while still aligning variables correctly with spaces. But this only works when you enforce an autoformatter, and way too few languages have a standardized autoformat.