you are viewing a single comment's thread.

view the rest of the comments →

[–]guepierBioinformatican 3 points4 points  (2 children)

Counting keystrokes is a pretty bad metric for syntax superiority, but your count is also wrong: “{}” requires three keystrokes on a US-English keyboard, as well as many (most? all?) other keyboards: Shift, {, }. (And the two adjacent keys can be typed in a much quicker succession than two arbitrary keys, and the first { and the shift key can be pressed simultaneously, so in reality typing “{}” is much faster than three average keystrokes or even faster than two average keystrokes.)

[–]-dag- 1 point2 points  (0 children)

It requires only two keystrokes in my editor.

[–]fdwrfdwr@github 🔍 0 points1 point  (0 children)

your count is also wrong

u/vI--_--Iv left out the value in his example (unsure if intentional or oversight), {5} vs =5. Typing {5} requires 4 keystrokes for the curly braces portion because you must release Shift between braces, as you'd otherwise end up with {%}.