On Tue, Feb 14, 2012 at 7:17 PM, Brandon Bloom <snprbo...@gmail.com> wrote:

> > I put your notes here,
> > http://dev.clojure.org/**display/design/Dynamic+Binding<http://dev.clojure.org/display/design/Dynamic+Binding>
>
> Thanks!
>
> I don't do anything special for asynchronous code, this simply provides the
> primitives necessary. Which is, primarily, bound-fn. Which is, in turn,
> built on {get,pop,push}-thread-bindings.


One problem then is that the work becomes explicit instead of implicit as
it is in Clojure: future and agent sends setup the machinery for you.
Another problem with the proposal is that there will be use cases for
dynamic binding that shouldn't have to pay for the overhead of your
implementation.


> There is some future work, which requires far more thinking, to
> accomplish something akin to C#'s async/await keywords.


You can do that with delimited continuations implemented via macros.

David

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