A way to hint indentation to the tooling would be nice.

Perhaps a metadata on vars such as {:body-indent #{then-clause 
else-clause}} that could tell tools to indent an "if" this way:

(if condition
  then-clause
  else-clause)

instead of this way:

(if condition
    then-clause
    else-clause)

rather than the current ad-hoc special-casing that seems to be used at 
present. (Ad hoc special-casing would still be needed for special forms, 
including "if", but this could be used with macros and perhaps with 
functions if someone wanted that.)

(Formal specification for that suggestion: the metadata key :body-indent 
should have a value that is a set of symbols, which are some subset of the 
symbols appearing in arglists of the bound macro/function. Editors and 
pretty-printers and other tools would take this as a hint to indent the 
corresponding parameters only two spaces, if on lines of their own, rather 
than to align with parameters inline with the operator on the form's first 
line.)

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to