Hi,
Am 18.08.2010 um 11:09 schrieb michele:
> (defn myfn-a [a b]
> (if (zero? b)
> a
> (recur
> (afn (bfn (...)) a)
> (dec b))))
>
> (defn myfn-b [a b]
> (if (zero? b)
> a
> (recur
> (afn (bfn (...)) a)
> (dec b)
> )
> )
> )
I find it interesting, that people find the latter easier to read. In
particular because the closing parens are now much farther away from their
opening counterparts. For me, this is much harder to align. As others already
said: I go mostly by indentation. When the auto-indentation is not what I
expect, I did something wrong. I think in the end, it's the combination of
auto-indentation, paren-match when editing, rainbow parens and small functions
(where the number of parens stays in a reasonable number) that does the trick
for me. Lisp syntax really isn't around the parens. But you can waste a lot of
time, discussing where to place them. Just as much as you can waste time on the
placement of {} in C. We should move on.
Sincerely
Meikel
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en