(no title)
Arelius | 7 months ago
And maybe you can enforce no alignment, but that's a hard fight to win.
And as far as tabs for indentation and spaces for alignment, I've found no practical way to enforce this via tooling/linting. And a rule without enforcement becomes inconsistent, which is how we get files full of mixtures of spaces and tabs, which is how people get frustrated with tabs, and we decide to throw it all out.
And inevitably, that's part of how spaces "won"
camel-cdr|7 months ago
ytpete|7 months ago
To take this example from a sibling post:
Many people will wind up doing this: And then your alignment is all messed up if you have a different tabs setting.Checking for that requires something more like a linter with a detailed understanding of the syntax parse tree.
throwawayqqq11|7 months ago
Addind a comment with the right amount of tabs as a table header and align all fields with spaces after the tabs would do the trick.
pepa65|7 months ago