Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: 3-space code indentation #36676

Closed
ghost opened this issue Jan 21, 2020 · 2 comments
Closed

Proposal: 3-space code indentation #36676

ghost opened this issue Jan 21, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 21, 2020

I understand this have been set in stone since the beginning and could be personal preference but we could probably discuss 3-space code indentation for Go 2.

2 space is too narrow.
3 space feel balanced for Go syntax and on small-screen devices
4 space does look slightly off.
Tab (8 space) is too wide and as have bad eyes vision that prefer less space.

@gopherbot gopherbot added this to the Proposal milestone Jan 21, 2020
@DeedleFake
Copy link

One of the points of using tabs is that any editor that should even remotely be considered useful for editing code lets you set how wide the tabs are. A lot of them default to 8, but if you don't like that just change it.

@bradfitz
Copy link
Contributor

It's not even February 1st yet. April is over two months away.

But to be serious, this isn't going to happen. If we changed the gofmt default every time somebody filed a bug about their personal preference we'd always be changing it. Like @DeedleFake says, a tab is semantically meaningful and you can configure your editor to render them how you'd like.

@golang golang locked and limited conversation to collaborators Jan 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants