2 ms·
Some style guides have a line limit (including Dart). If you want to submit code without hand-editing, the formatter needs to do it. On the other hand, Go's st
by skybrian 9y ago
Some style guides have a line limit (including Dart). If you want to submit code without hand-editing, the formatter needs to do it.
On the other hand, Go's style guide doesn't have a line limit, so its formatter doesn't have to solve tricky problems like this. Programmers can add line breaks by hand if they get too long. (A nice side effect is that auto-formatting your code doesn't change line numbers.)