manton
manton

On pretty much a daily basis I’m torn on whether to enforce real tabs everywhere even in shared code or give up and use spaces. Tabs as spaces are so much worse, it’s still surprising that most of the JavaScript and Ruby world has settled on them. Trying to fight it creates new problems.

|
Embed
Progress spinner
In reply to
lmika
lmika

@manton Yeah, Go has settled on tabs over spaces as well. I think the saving grace is that everyone in the Go community more-or-less expect code to be formatted using go fmt, which converts spaces to tabs, and any Go text editor pretty much expect tabs in the source. You can adjust how large the indentation appears, but at least you’re less likely to encounter a file using spaces.

|
Embed
Progress spinner