Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

It would be nice to support the refs API in clojurescript to ease porting of libraries which require it. Obviously usage of it would not bring concurrency benefits, but it would at least allow some existing clojure code to run.

I've satisfied myself it can be done reasonably easily (see https://github.com/jjl/clojurescript/tree/ref-support ), and I can't really see any downsides.

For the minute, this has been put into the cljs.stm namespace. I don't know whether it should be a feature you are automatically opted into, so I didn't put it into core. Thoughts?

2 Answers

0 votes
by

Comment made by: dnolen

It's definitely worth considering. If you've done the work, attach an actual patch for review. In general we try to avoid links outside.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-1610 (reported by techpractical)
...