On Tue, Jul 15, 2014 at 9:44 AM, Stefan Kamphausen <ska2...@gmail.com> wrote: > > Note, that it may be a reasonable fix to your situation to change bar > instead of foo. This is possible by evaluating the new definition of bar > /later/; bar could also be a dynamically bindable Var, so that when > compiling foo, we do not know how to call bar correctly. That's the way > the compiler works. A linter like eastwood[1] might report this, though. >
I was going to say the same thing about dynamic vars. Here's an example: user=> (defn ^:dynamic foo [x] (inc x)) #'user/foo user=> (foo 1) 2 user=> (binding [foo (fn [x y] (+ x y))] (foo 1 2)) 3 -- 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/d/optout.