News for hackers. Stuff that matters.
Re:The hardest program I've ever written (2015) by lesam on Saturday March 05, 2022 @09:48AM (#30568009)
It's interesting that the article specifically mentions the go formatter, but fails to notice that the go formatter sidesteps this problem entirely by not setting a line length constraint: https://news.ycombinator.com/item?id=16434566
Re:The hardest program I've ever written (2015) by xphx on Saturday March 05, 2022 @09:55AM (#30568074)
> If every statement fit within the column limit of the page, yup. It’s a piece of cake. (I think that’s what gofmt does.) But our formatter also keeps your code within the line length limit.