Ad
  • Custom User Avatar

    You don't even need to think about it just use paredit or smartparens. Any clojure editor or IDE supports it, Emacs, LightTable, Counterclockwise, Cursive. Because it's automatic, you'll feel the code flow naturally. For instance Ctrl-right on Emacs will do this for you:
    ()[1 2 3] -> ([1 2 3]) Ctrl-left will do the inverse. Besides that a nice IDE will have rainbowparens so you can visually gauge the depth of the s-expr.

  • Custom User Avatar

    Im fine doing that on a larger code base if it is the standard but honestly I find that convention to be much harder to edit and I don't really see any benefit to it.

  • Custom User Avatar

    (S-expressions
    close
    on the
    last word)
    (Don't
    (do
    this it looks silly lisp isn't algol
    )
    )