Re: [ClojureScript] When to use dynamic vars in ClojureScript?

2016-10-17 Thread Herwig Hochleitner
In clojure, set! can only be used on dynamic vars, that are currently bound. Apparently, clojurescript allows set! on root-bound vars, but I wouldn't rely on that. Your use case with matching set! pairs really has the semantics of just calling def. ​A much safer way to temporarily alter the root bi

Re: [ClojureScript] When to use dynamic vars in ClojureScript?

2016-10-17 Thread Daniel Compton
> I'd really think twice before requiring your users to insert matching pairs of mutation in their code. It goes against the grain of clojure and is error-prone. > Why can’t on-jsload (is that figwheel's?) just run the update within a (binding [*warn-on-overwrite* false] ...)? The (simplified) str