On Fri, Feb 4, 2011 at 3:05 PM, B Smith-Mannschott
<bsmith.o...@gmail.com> wrote:
> (defmacro thread-let [[varname init-expression :as binding] & expressions]
>  {:pre [(symbol? varname)
>         (not (namespace varname))
>         (vector? binding)
>         (= 2 (count binding))]}
>  `(let [~@(interleave (repeat varname) (cons init-expression expressions))]
>     ~varname))

Cooooooool. :)

> What should I name this thing? I'm concerned that "thread" is
> confusing due to its dual meaning. let seems in line with clojure
> conventions.
>
> (thread-let [x ...] ...)
> (thread-with [x ...] ...)
> (thread-through [x ...] ...)
> (let-> [x ...] ...)
>
> thoughts?

How about

(chain [x ...] ...)

since it's chaining a sequence of operations together? It's a short,
reasonably descriptive name and it doesn't shadow anything in
clojure.core. :)

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