On 8/18/10 1:32 PM, Brian Goslinga wrote: > Putting them on separate lines put the focus on the wrong element of > the code. You do not want to be focusing on the parentheses, you want > to be focusing on the structure of the code. The idiomatic lisp > formatting style uses indentation to reveal the large scale structure > of the code, and so the parentheses can be neatly tucked away. With a > little experience, the parentheses will start to fade from view. > > Additionally, putting them on separate lines waste vertical space, and > you should be using an editor that supports paren matching so you > don't need to count them. >
Generally, when I am working on a function, I will put the closing parens anywhere with a ton of whitespace all around. Once I'm done with the function, I make sure to delete all of the excess breaks so that it's a nice neat block of code. Using paredit in emacs makes it really easy to handle the closing parens. I'm sure there are other good tools for the other editors.
signature.asc
Description: OpenPGP digital signature