It's unlikely to come up, but I noticed this:
(macroexpand-1 '(defmacro foo [] 'bar))
=(do (clojure/defn foo [] (quote bar)) (. (var foo) (setMacro)))
Doesn't return the return value of the defn, which I think it should
for consistency.
--~--~-~--~~~---~--~~
You
I'd like some version of doto that works on bare Classes
--~--~-~--~~~---~--~~
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,
Macros in closure are (fn ...) where the var in which the function
resides has a flag in the metadata set. Which means there is no
difference between the two except to eval (or apply).
I was just thinking that all of the def* should share return values.
It sounds like all we really need is a single clojure thread which
handles all access to Swing/AWT/Whatever. Since an additional
complaint is that Swing is too imperative, it sounds like both
problems could easily be solved at once.
I'd personally like for the declarations to be done using