Is there a good reason Swift uses double quotes instead of single for strings? Why 100% extra effort for such a common token?
#ergonomics
-
-
@aral So all our method and variable names should be one character, as to make them longer is ergonomically bad? -
@pilky Not at all. But *in this specific instance* — “ vs ‘ — I cannot see a reason to choose the option with 100% extra mechanical load. -
-
@cocoafrog@pilky 1 keystroke vs 2 keystrokes. Maths. :) -
New conversation -
-
-
@aral It also means you don't have to escape any apostrophes in strings, which you would in single quoted text -
@pilky Unless you use proper curly quotes in your strings instead of typewriter quotes :) -
@aral Because searching around the character palette for proper curly quotes is much faster than shift-' ;)
End of conversation
New conversation -
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.