3 ms·
Same here. It encourages deep indentation and at the same time makes the indents harder to quickly parse. Also single bloody quotes. Why?
by arresin 2y ago
Same here. It encourages deep indentation and at the same time makes the indents harder to quickly parse.
Also single bloody quotes. Why?
- KPGv2 2y ago> Also single bloody quotes. Why? Because double quotes requires two keystrokes. Single quotes requires one. The only defense of double quotes is an appeal to history.
- Timon3 2y agoNot everyone uses the same keyboard you do. With a German layout it's much easier for me to type double quotes. That's not to say everyone should use them, but reality is more nuanced than you make it seem.
- brabel 2y agoI can see why people may take issue with tabs VS spaces, that's as old a debate as programming languages themselves. But taking issue with single quotes is just on another level of bike shedding! WTF is wrong with single quotes???
- deleted 2y ago[deleted]
- hamandcheese 2y agoSingle quotes are quite a common English punctuation character. Particularly in the strings I tend to hardcode in programs, it is way more likely that I need to write a single quote than I do a double quote. When that happens, I have to escape the quote (if the language even allows escapes in single quoted strings) or change the whole string to double quotes. Because typing a single quote will break parsing, it's also hard for tooling to assist. If I put a single quote unescaped, the auto formatter will probably barf.
- rizky05 2y agoI prefer backtick.
- arresin 2y agoThe truly patrician choice.