3 ms·
> [...] instead force everyone to accept long lines. You don't need to accept long lines as gofmt respects your own line wrapping. It's easy to write code that
by eikenberry 9y ago
> [...] instead force everyone to accept long lines.
You don't need to accept long lines as gofmt respects your own line wrapping. It's easy to write code that never exceeds the 80 character limit. The main annoyance in go is it's use of tabs, so you have to change tabs in everything to a reasonable amount of space.
- pcwalton 9y agoFair enough; that's a good point. I'd still argue, though, that gofmt isn't doing what people expect pretty printers to do. Long lines are some of the most common style violations in most projects.
- eikenberry 9y ago100% agreed. I'm a strong believer that the 4-6 inch column rule from print media applies equally to text in general and that the 80 character rule is a good approximation for this print rule.