On Sun, 19 Mar 2017, at 09:35 PM, Rob Pike wrote: > How wide should the indentation be? 2 spaces? 4? 8? Something else?
> > By making the indent be a tab, you get to decide the answer to that > question and everyone will see code indented as wide (or not) as > they prefer. > > In short, this is what the tab character is for. Please don't take this a criticism of the choice or of gofmt, but purely an observation. It seems to me that this explanation is at odds with the philosophy of gofmt which is that there is a single way to lay out code. The benefits of that are obvious but using tabs erodes it somewhat when you read code on another computer. I always felt the reason for using tabs was to enable support for non- monospaced fonts and multi-width characters. A tab stop in the traditional sense is a linear position, not a number of characters. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.