The standards doc on the wiki here:
http://www.assembla.com/wiki/show/clojure/Clojure_Library_Coding_Standards

Makes this recommendation:
"Idiomatic code uses destructuring a lot. However, you should only
destructure in the arg list if you want to communicate the
substructure as part of the caller contract. Otherwise, destructure in
a first-line let. Example: my snake code from the book fails this
test, doing too much destructuring in arg lists."

I'm not entirely sure how to interpret this. If a function is
expecting a certain argument structure, isn't it always better to
document that in a destructuring argument list? I'm finding that
destructured signatures generally help me track my dataflow better.
Can somebody elucidate this distinction a bit?

-- 
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

Reply via email to