News for hackers. Stuff that matters.
Re:A better Java: Scala or Xtend? by h_r on Sunday September 30, 2012 @12:05PM (#4593184)
As others mentioned, Clojure makes it fairly simple to generate a normal Java class containing your Clojure code. In addition, you can access clojure.lang.RT to run your Clojure function directly, like this: RT.loadResourceScript("pkg1/pkg2/runner.clj"); RT.var("pkg1.pkg2.runner", "run").invoke(args);

However, in my experience, Groovy is about as simple as it can be. Just put your Groovy code inside a class and it looks exactly like any other Java class.

There are no comments on this comment yet.