logoalt Hacker News

verdvermlast Tuesday at 5:55 PM1 replyview on HN

What if I wrap the error? Should that be squashed to one line? What is the heuristic?


Replies

bccdeelast Tuesday at 6:17 PM

Sure, why not? Let the programmer decide if they want one line or three lines; the tool can permit both. Gofmt is line-length-agnostic—breaking up long lines is already considered to be the programmer's responsibility.

show 1 reply