Re: Calling Clojure *from* Java

2019-06-10 Thread Howard Lewis Ship
You can have your cake and eat it too. I haven't touched this code in years, but there's no reason it shouldn't still work with the current version of Clojure. https://github.com/apache/tapestry-5/tree/master/tapestry-clojure Essentially, you provide an interface and map it to a Clojure namespac

Re: Calling Java from Clojure

2019-06-10 Thread eglue
> I find the glue code is actually small in practice (I've done a couple of real systems this way). This particular example is a little weird because it's just making a domain object, but generally you're writing the glue to provide a factory method for a facade. Below the facade, the Clojure co

Re: Calling Java from Clojure

2019-06-10 Thread Alex Miller
On Mon, Jun 10, 2019 at 12:04 AM eglue wrote: > This is great, Alex, thanks. (Sorry, I deleted from underneath you and > reposted to fix the title before I saw your reply...) > > The latter option, writing interfaces and classes in Java and calling w/ > the glue code is a great option. > > Howeve