Hello All,
I think it's a good idea to add the subversion revision to *clojure-
version*.
The below patch will work once someone does "svn ps svn:keywords
Revision core.clj".
Index: src/clj/clojure/core.clj
===
--- src/clj/clojure
Also at http://paste.lisp.org/display/80244
--~--~-~--~~~---~--~~
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
Hello,
I'm trying to create a "factory" method for Java classes, however I'm
doing something wrong.
(import '(java.util Dictionary HashMap))
(def *containers* { :dict Dictionary :hash HashMap})
(defn new-container
[type]
(new (*containers* type)))
(def d (new-container :dict))
The above gi
Hello All,
>> What is the right way to do this?
> (defn new-container
> [type]
> (.newInstance (*containers* type)))
> (defmacro new-container [type]
> `(new ~(*containers* type)))
Thanks! These are both great and also very educational.
The reason for this coding style is that I'm writing a wr