Re: Best practices for java libraries

2012-12-10 Thread xavriley
You might like to checkout some of the videos from ClojureX recently. One was called 'playing nice with Java' and the other was a 10 min lightning talk by Rich Hickey on how they use Java in the Datomic project. I've only just joined the list so I don't want to get swept up in spam filters on

Re: Best practices for java libraries

2012-12-10 Thread Grant Rettke
Sounds like a good candidate for the Clojure documentation project. On Mon, Dec 10, 2012 at 5:33 PM, Mikera wrote: > Some thoughts from various Java libraries I have wrapped: > > - Normal functions are generally best for wrapping > - It can often make sense to have a protocol that dispatched on t

Re: Best practices for java libraries

2012-12-10 Thread Mikera
Some thoughts from various Java libraries I have wrapped: - Normal functions are generally best for wrapping - It can often make sense to have a protocol that dispatched on the type of the Java object and/or clojure params for polymorphism and extension. Your public functions should often call t

Best practices for java libraries

2012-12-10 Thread Michael Grubb
I've been searching for some best practices when it comes to wrapping existing Java libraries to make them more "clojurized." Unfortunately I've not found much. While I know enough to make something that works for me, I'd like to write it in such a manner that it can be used (and read) by others