On Tue, 2011-12-06 at 19:13 -0800, Sam Ritchie wrote:
> (let [x (foo)
> y (bar)]
> (when y
> (let [ ....]
> ....)))
>
> that check jarred me, so I put this together:
> https://gist.github.com/1347312. On reflection, discomfort with indentation
> levels probably isn't near the top of the "to macro or not to macro?"
> checklist.
And may be anyway further generalized:
(defmacro <<- [& forms]
`(->> ~@(reverse forms)))
(<<- (let [x (foo) y (bar)])
(when y)
(let [ ....])
(do ....))
--
Stephen Compall
^aCollection allSatisfy: [:each|aCondition]: less is better
--
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