(“ = shift+’ = two keystrokes, ‘ = one keystroke. Think of the billions of times people will write strings and the cumulative extra effort.)
-
-
-
@aral You could also complain about { } : & | ? ! < > + ( ) and many other equally taxing characters -
@pilky And we should. How much RSI could be saved from their cumulative effects if we considered the ergonomics of our token choices? -
@aral First off, if your shift key is causing you that much pain you should probably be resting as you can't avoid it when programming -
@pilky It’s not causing me pain but that’s not the point. Nothing you’ve mentioned actually gives a good answer to my original question :)
End of conversation
New conversation -
-
-
@aral not sure you consider this a "good" reason, but convention. Like C++, where single quotes are used for char, double quotes for string -
@t045tbr0t Good point but it’s a new language without a character literal — don’t see that as a good reason :)
End of conversation
New conversation -
-
-
@aral also, this may or may not be significant, but not all keyboard layouts allow typing ' without shift. QWERTZ doesn't. -
@t045tbr0t That’s a better reason. I know some keyboard layouts (I’m looking at you Norwegian keyboards) are terrible for programming. -
@aral there's another discussion to be had here - if typing is a bottleneck while programming, something's going wrong
End of conversation
New conversation -
-
-
@aral Hah, try using a German keyboard layout for programming in any language. It's a total RSI nightmare :)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@aral It is weird (probably because of the C/C++ heritage). Allowing mixing of single- and double-quoted strings like Python would be nice.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@aral 1. depends in Keyboard Layout. E.g. [ and ] is actually really bad on a German keyboard. 2.Easy to confuse with accents? 3. Convention -
@aral convention as in: probably most languages use double quotes (including Objective-C) for strings so programmers are more used to it
End of conversation
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@aral double quotes are just next to single quotes on my keyboard, not on yours?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@aral Because most languages use double quotes and a shift key isn't that taxing a thing to press?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@aral because Taylor Swift knows … wait, you’re not talking about@SwiftOnSecurityThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.