Yeah, thanks, sorry I wasn't clear: I now know how to do it correctly. I was just curious about why the compiler allows this.
Interestingly, Om actually uses def and set! on one occasion. (def ^:private refresh-queued false) ... (set! refresh-queued true) https://github.com/swannodette/om/blob/cc270092ef30682360544c7fc867679cb698d788/src/om/core.cljs#L850 -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
