On Jun 5, 2009, at 4:35 PM, Stephen C. Gilardi wrote:

What are the downsides to always indenting list contents that start on a new line as indented 2 (possibly optionally 1) from their opening paren?

Playing with this some, I see that when all the arguments to the function are equal in stature, it makes sense for them to line up:

(str "hi"
     "there"
     "lined"
     "up")

When there are one or more arguments that are "distinctive" (as in the direct object of the function's verb), it makes sense for the the distinctive arguments to appear on the same line with the function and the rest to simply be indented from the open paren.

(my-cool-database-operation the-database
  (arg-exp-1 with operands)
  literal-arg
  angstroms)

There doesn't seem to be an easy way to distinguish these two types of initial operands (or the N-2 other types I've missed). "with-*" would probably seldom be wrong as an indicator of the second type.

--Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to