Arc Forumnew | comments | leaders | submitlogin
2 points by evanm 6122 days ago | link | parent

Why bother?

The problem of having to add a terminating parenthesis is a non-existing one.

With emacs and slime-mode for example you add the parenthesis in pairs around any expression you wish, and you can remove them in pairs as well.



1 point by kennytilton 6121 days ago | link

Still work compared to converting (in my case) (+ x 42) to (ekx hi-mom + x 42). Subtext: I have watched Emacs users edit code... reminds me of a Nascar pit stop.

-----

1 point by evanm 6120 days ago | link

do you mean (ekx hi-mom (+ x 42)) ?

if you are inside the (+ x 42), type C-, to move just before the parenthesis, then C-1 [ to insert parentheses around the expression, then type "ekx hi-mom ".

In short: C-, C-1 [ ekx hi-mom

-----

1 point by kennytilton 6118 days ago | link

No, the idea was to add/remove tracing without adjusting the parens (I hate typing), so (ekx xxx + 2 2) as strange as it looks does eventually expand in part to the form (+ 2 2).

-----