Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tern
on June 19, 2014
|
parent
|
context
|
favorite
| on:
Gofmt No Longer Allows Spaces. Tabs Only
There is nothing wrong with mixing tabs and spaces. It works great.
_pctq
on June 19, 2014
|
next
[–]
Provided everyone use the same tab width :)
dTal
on June 19, 2014
|
parent
|
next
[–]
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).
_pctq
on June 19, 2014
|
root
|
parent
|
next
[–]
Oh, you're right. I should have tried it before commenting :)
jsmthrowaway
on June 19, 2014
|
prev
[–]
Until Python. Then it doesn't.
markrages
on June 19, 2014
|
parent
[–]
tabs for indent, spaces for alignment works great with Python.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: