Do you use a keyboard with mappings to make it easier? Rely on the editor to insert them for you?
Do you use a keyboard with mappings to make it easier? Rely on the editor to insert them for you?
(defun hello (name)
(format t "Hello, ~A!" name)) ;; 6 parens, 6 shift keys
def hello(name):
print(f"Hello, {name}") # 4 parens, 2 curlies, 6 shift keys
void hello(char* name) {
printf("Hello, %s\n", name);
} // 4 parens, 2 curlies, 6 shift keys
No real difference for typing.Same case for vi - the : key was in a different place, and no Shift necessary[2].
Nowadays, I use a bespoke layout (in software) that solves the above two problems, among others. My number row is inverted, so parentheses become lower case, and I put the colon key next to 0 and Enter next to P.
[{ 1| 2= 3~ 4+ 5< 6> 7^ 8& 9% 0* ]} /\
bB yY oO uU '( ") dD nN gG vV qQ #$ @`
hH iI aA eE ,; .: tT rR sS cC zZ
kK jJ xX wW -_ ?! mM lL fF pP
[1]: https://github.com/binarybottle/engrami always have problems with keys that have no obvious dedicated finger position like the middle vertical columns especially 6 and b and of course keys reachable on the right pinky, especially \ and =
And besides:
print("Hello World");
requires just as much chording as: (print "Hello World")That... depends on your keyboard maybe? On Dvorak the curly brackets are harder to reach than the round brackets. The open round bracket is also hit with the ring finger instead of the little finger, which is weaker.