2 ms·
I think what's more important than the character count is the fact that you can add #p with two key strokes. Inserting parentheses requires moving your cursor
by asQuirreL 1y ago
I think what's more important than the character count is the fact that you can add #p with two key strokes.
Inserting parentheses requires moving your cursor around or invoking some shortcut in your editor if you use paredit, vim-surround, or a similar plugin. Applies equally for removing the invocation (although paredit makes that part easy).
- daveliepmann 1y agoIsn't this the exact same number of keystrokes? 'Shift-3 p' versus 'Shift-9 p' on my keyboard.
- dkersten 1y agoparedit, parinfer and whatever other Clojure/lisp editing tools exist make this trivial though. Editor macros also exist to wrap expressions in calls.
- kazinator 1y agoGood point. The parinfer implementation just perhaps needs some kind of nudge to know that when (p is added in front of an object, the parenthesis goes after just one object. If it creates the matching parenthesis in the wrong place (like end-of-line), then you have to manually mess with parentheses.
- deleted 1y ago[deleted]