3 ms·
Maybe it's just cause I want to stick to a certain width, but I can't remember the last time I disagreed with the autoformatter.
by hot_gril 3y ago
Maybe it's just cause I want to stick to a certain width, but I can't remember the last time I disagreed with the autoformatter.
- vitiral 3y agoHave you tried for any length of time? For example, there's lots of little places where aligning keywords helps clarify code https://github.com/civboot/civlua/blob/main/ds/ds.lua#L89 https://github.com/civboot/civlua/blob/main/ds/ds.lua#L89 Formatters HATE putting multiple statements on a single line, but when they go it makes it so much easier to parse (for a person)
- hot_gril 3y agoYeah, I used to not have an autoformatter, and still occasionally I'm working in an environment without access to one. I don't get how this example is clearer than a multi-line if, or perhaps a ternary operator (idk if lua has that).