When (if ever) is it good form to call the underlying Java APIs used by Clojure's special forms? I ask because I suspect it is often easier to do than writing an equivalent macro. In languages such as Ruby the metaprogramming capabilities are exposed as functions, and you just call them. It is quite a mind-shift to come to Clojure where you do not dynamically invoke special forms, but instead use macros to emit dynamic variations on them.
Do I need to just get over it and embrace macros more? :-) Stuart > > This may be a horrible hack, but you can do something like this in > your macro: > > (clojure.lang.RT/var "my-namespace" "hack-fn" (fn[x] (+ 1 x)) > > This defines a var (creates the namespace if it doesn't exist) and > sets its value to a function, and then you can > > (in-ns 'my-namespace) > (hack-fn 1) > > etc. > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---