On Wed, Sep 15, 2010 at 3:35 PM, Luke VanderHart <luke.vanderh...@gmail.com> wrote: > Unless I misunderstand something, (binding...) wouldn't work for this > because I'd have to wrap all of the code I wanted to be "modified" > within a (binding...) form. Fine if it's one source file, not so fine > if I have dozens... Or am I missing something? >
Hi Luke, I share this same need very often, that is, to intercept functions on the fly. For now, using (binding ..) seems to suffice because an application normally has explicit entry points, such as http request, and transformations can be placed there. We can always create wrappers to call other functions with specific bindings (for threads, etc). It's less magical, but it may be benefitial.. But it does seem less "powerfull" than javascript or AOP, where one can redefine everything. (cheers) -- 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