On Sep 17, 12:45 pm, Rich Hickey <[EMAIL PROTECTED]> wrote: > While it is possible to make a globally visible change to a var with > def, the only appropriate scenarios for doing so are to fix a bug, or > for scratch vars at the repl.
This brings up an idea I had a while back -- what if you wanted to update a running system in a transaction? Say you have a bug that requires multiple defs to fix. You want all those defs to take effect at the same time. As I understand it, that's not possible with Clojure right now, but didn't you mention that Vars and Refs used to be the same thing? Of course, there might be a significant performance penalty to do a Ref lookup on every function call. This is pure speculation, not a feature that I have any need for right now. -Stuart --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---