Re: Java API vs. Special Forms, was Re: "Can't create defs outside of current namespace"

2008-11-13 Thread MikeM
> When (if ever) is it good form to call the underlying Java APIs used   > by Clojure's special forms? I was thinking Rich might reply and weigh in on my suggestion to use an RT method. I'd also like to know if this should be avoided. It seems like it might be ok, since the var method is publi

Java API vs. Special Forms, was Re: "Can't create defs outside of current namespace"

2008-11-12 Thread Stuart Halloway
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.