Re:Gofmt No Longer Allows Spaces. Tabs Only
by gmjosack on Thursday June 19, 2014 @01:47AM
(#7914644)
The way people solve that is tabs for indentation and spaces for alignment. In my opinion this is a terrible compromise as mixing tabs and spaces is sacrilegious.
[ Parent
| on HN ]
Re:Gofmt No Longer Allows Spaces. Tabs Only
by msutherl on Thursday June 19, 2014 @01:56AM
(#7914665)
There is nothing wrong with mixing tabs and spaces. It works great.
Provided everyone use the same tab width :)
Nope, works regardless of tabwidth; that's the point. Tabs for indent (these change size with tabwidth), spaces for alignment (these don't change so things stay aligned).
Re:Gofmt No Longer Allows Spaces. Tabs Only
by oelmekki on Thursday June 19, 2014 @06:47AM
(#7915494)
Oh, you're right. I should have tried it before commenting :)
Re:Gofmt No Longer Allows Spaces. Tabs Only
by jsmthrowaway on Thursday June 19, 2014 @02:00AM
(#7914678)
Until Python. Then it doesn't.