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: should break down long lines of comments #11915

Closed
derekchiang opened this issue Jul 29, 2015 · 1 comment
Closed

cmd/gofmt: should break down long lines of comments #11915

derekchiang opened this issue Jul 29, 2015 · 1 comment

Comments

@derekchiang
Copy link

There should be a default like 100 characters per line. Then if your comment is longer than that, gofmt should break it down into shorter lines.

@griesemer
Copy link
Contributor

Setting to 100 is arbitrary. There's a large number of people that think it should be 80 chars (perhaps because that's how wide terminals were in the 80s). Others say 120. And so on. We could have a flag to specify it. But that would defeat the primary advantage of gofmt of producing one uniform style. There's no good answer to setting a limit.

It's much better to leave judgement to authors, programs, etc. that generate Go code, and respect the original input in that respect.

Will not change.

@mikioh mikioh changed the title gofmt should break down long lines of comments cmd/gofmt: should break down long lines of comments Jul 29, 2015
@golang golang locked and limited conversation to collaborators Aug 5, 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