4 ms·
Can you elaborate? Mature IDE's already customize the presentation of things like annotations or comments, inject inline hints, and provide alternate editors f
by swatcoder 2y ago
Can you elaborate?
Mature IDE's already customize the presentation of things like annotations or comments, inject inline hints, and provide alternate editors for things like XML, markdown, or established UI description formats, etc
- Etheryte 2y agoImagine 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.