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

cmd/gofmt: doesn't unity spaces in expression with plus operator #12105

Closed
mattn opened this issue Aug 11, 2015 · 1 comment
Closed

cmd/gofmt: doesn't unity spaces in expression with plus operator #12105

mattn opened this issue Aug 11, 2015 · 1 comment

Comments

@mattn
Copy link
Member

mattn commented Aug 11, 2015

http://play.golang.org/p/W2JmdQSNns

When two arguments are given, gofmt removes spaces both sides in plus operator. Is this expected?

@robpike
Copy link
Contributor

robpike commented Aug 11, 2015

Yes. Gofmt uses spaces to show grouping appropriate to operator precedence.

@robpike robpike closed this as completed Aug 11, 2015
@mikioh mikioh changed the title gofmt doesn't unity spaces in expression with plus operator cmd/gofmt: doesn't unity spaces in expression with plus operator Aug 13, 2015
@golang golang locked and limited conversation to collaborators Aug 22, 2016
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