On Mon, Jan 9, 2012 at 1:18 PM, Stuart Sierra
<the.stuart.sie...@gmail.com> wrote:
> #3 seems unlikely to be implemented. ClojureScript doesn't have Vars, and it
> doesn't have threads, so there's not much for `binding` to do. I could see
> `with-redefs` being supported, however.

Actually, the lack of threads just simplifies the heck out of
implementing binding: push the current value onto some stack and
assign a new value at the start, and pop the old value off the stack
and restore it at the end. Which boils down to with-redefs, so binding
could just be made to be a kind of alias for that in ClojureScript. It
would increase source portability between the two to make both names
invoke this functionality and not just with-redefs, though.

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