reagent
reagent copied to clipboard
rename run! macro to react!
under [org.clojure/clojurescript "0.0-3308"] it was shadowing clojure.core/run! and causing warning:
WARNING: run! already refers to: #'clojure.core/run! in namespace: reagent.ratom, being replaced by: #'reagent.ratom/run!
See also #125
Thanks for the link.
AFAIK the problem with :refer-clojure is that it would have to be written in every file including ratom macros.
Also I think that run! name is unfortunate. It implies something which is run once and has side-effects. We need some better name which hints "this piece of code is being run multiple times in reaction to ratom changes".
If we're going to go down this track, it would be good to go through a depreciation process for this. run! should still be usable for at least one more minor version series to let people update their code gracefully, and deprecation warnings should be printed when people use run!.