golang/go

cmd/gofmt: should break down long lines of comments

derekchiang opened this issue · 1 comments

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.

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.