Hacker News new | ask | show | jobs
by rorygibson 2782 days ago
Most editors have a plugin for "paredit" mode that auto-balances the parens for you.

(And code with 50 nested levels of parens is Bad Code, just like too much nesting in a C-like language)

1 comments

Parinfer is also really nice. It rearranges your parens automatically based off of your indentation. I still prefer something like Paredit, or Smartparens for the power user features, but Parinfer is really intuitive and just works without having to learn new editing commands or hotkeys. It's my go-to recommendation now for people coming to lisp for the first time because it makes working with lisp code very similar to working with an indentation-based syntax like Python.

https://shaunlebron.github.io/parinfer/