Live data from Hacker News

Paredit mnemonics for slurping and barfing Lisp symbolic expressions

susam.net

1–10 of 17 posts

Re: Paredit mnemonics for slurping and barfing Lisp symbolic expressions

#6
vim-sexp-mappings-for-regular-people [1] uses really easy-to-remember shortcuts for these:

- "backward slurp" is "- "forward slurp" is ">)" (move closing paren to the right)

- "forward barf" is "- "backward barf" is ">(" (move opening paren to the right)

[1]: https://github.com/tpope/vim-sexp-mappings-for-regular-peopl...

Re: Paredit mnemonics for slurping and barfing Lisp symbolic expressions

#8
Thanks, I will give paredit a shot.

I'm a regular emacs user, but I normally use expand-region[1] and cut/paste to edit lisp code. Expand-region usually knows what I want to move around after just one or two calls, only requires one key binding, and has visual feedback. And it works great in every language I have used.

[1] https://github.com/magnars/expand-region.el

Re: Paredit mnemonics for slurping and barfing Lisp symbolic expressions

#9
post #5

Congratulations, you came up with a programming verb that’s even more disgusting than “squelch”.

Came up with? Slurp/Barf are _at least_ ~35 years old. Possibly more?

That doesn't make those terms any less disgusting to use.
Post reply on HN