3 ms·
To reiterate, the example is trivialized; there isn't always an elegant solution that you just can't see because you didn't think hard enough. Regarding the ha
by CyberShadow 5y ago
To reiterate, the example is trivialized; there isn't always an elegant solution that you just can't see because you didn't think hard enough.
Regarding the hard line width, "fit everything on the screen" is a poor goal to aim for; a more useful goal is to make the best use of the two dimensions you have at your disposal. Squishing things across either axis will make for a poorer experience than occasionally requiring some scrolling for some setups.
You may also find it interesting that Prettier does not interpret it as a hard limit as well: https://prettier.io/docs/en/options.html#print-width https://prettier.io/docs/en/options.html#print-width
- solarmist 5y agoHonestly I can see this being a feature of the next gen of code formatters—dynamic reflow, like e-books.