I'm thinking about writing some code that would better be
transactional and thus use refs in a multi-threaded environment like
Clojure. But then it would also be nice to be able to run that code as
ClojureScript code (which obviously doesn't support refs) so I'm
wondering if anybody has worked on that kind of problem. Would
encapsulating refs operations inside macros that detect if refs are
available and if not would fall back to a simple atom (ignoring
transactional stuff and replacing alter/commute by swap!) be a good
way?

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