On Fri, 04 Feb 2011 15:05:39 -0500, B Smith-Mannschott <[email protected]> wrote:

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 ...] ...)


I used let-> for a slightly different version of this in pallet

(-> 3
  (let-> [x 1 y 2]
    (+ x y)))
 => 6

which enables a general let in the middle of a threaded expression.

https://github.com/pallet/pallet/blob/master/src/pallet/thread_expr.clj

--
Hugo Duncan

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

Reply via email to