Hi, Am 28.05.2009 um 23:23 schrieb tsuraan:
I have a java class whose constructor expects (among other things) a BlockingQueue<Long>. It's easy to create a BlockingQueue in clojure (obviously), but I can't figure out the syntax to specialize it to the Long type. Is this possible, or does it even make sense? I seem to recall that generics are just hints for the java compiler and not actually enforced by the runtime, which would imply that clojure has no need to support them. Is that the case?
Just ignore the generics. When you say in Java: BlockingQueue<Long> q = new BlockingQueue<Long>(); you just say in Clojure: (def q (BlockingQueue.)) Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature
