3 ms·
Imagine you like two spaces and I like four spaces for indents. With the above idea we both get what we want, locally you see two spaces and I see four, and the
by Etheryte 2y ago
Imagine you like two spaces and I like four spaces for indents. With the above idea we both get what we want, locally you see two spaces and I see four, and there's no diff for indents whenever one of us edits a file. Similarly for any other formatting preference.
- 63stack 2y agoIsn't this what tabs are for? Or is this /s?
- Etheryte 2y agoSpaces are just an example to demonstrate the idea. You could apply the same logic to braces, whether curlies are on their own line or not, whether there are spaces between some delimiters or not etc. The idea is that specific formatting doesn't matter, anyone could use their own personal preference because the AST behind it is the same.
- xigoi 2y agoNo, tabs are for formatting tables. It’s literally in the name.