OK, thanks. The apparent "globalness" is not the piece I want to imitate. I want to make a var available for users to set!, where the var controls overall behavior of how the library operates.
I understand that I can just declare the var dynamic, and then they can control it with the binding construct, but I want users to be able to set! it once and forget about it. I believe one can mimic the functionality with alter-var-root! (I haven't tried it though), but I'd rather imitate core's style of using set! for those sorts of overall controlling variables. I'm generally of the philosophy that ideally, a language should make available for users any features it uses in its own built-in libraries, so I'm hoping there's a way to do it. On Wed, Mar 13, 2013 at 12:06 PM, Michael Klishin < michael.s.klis...@gmail.com> wrote: > 2013/3/13 Mark Engelberg <mark.engelb...@gmail.com> > >> In Clojure, there are a handful of global variables that you can set! > > > They are not global, they reside in clojure.core which is referred to > automatically. > > user=> *warn-on-reflection* > false > user=> clojure.core/*warn-on-reflection* > false > -- > MK > > http://github.com/michaelklishin > http://twitter.com/michaelklishin > > -- > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.