4 ms·
How is clojure useful as a java repl in comparison to groovy, which is much closer to the java mindset?
by xtho 17y ago
How is clojure useful as a java repl in comparison to groovy, which is much closer to the java mindset?
- jcromartie 17y agoIn my experience, I find I can do more with less in the Clojure REPL. Groovy is really way too close to Java to even be notable. If you're just doing Java, then maybe it's fine as a Java REPL. Groovy advertises itself as being a dynamic language for Java devs who don't want to learn anything.
- zaphar 17y agonot having used groovy I'm not really qualified to give an opinion. But part of clojures value is that it isn't the java mindset. Boilerplate just melts away in clojure. That might not be relevant to its use as a java repl but it greatly enhances your productivity as a jvm programmer.
- xtho 17y agoWith Groovy the boilerplate code "melts away" too. Most java code is valid groovy code, but not the other way around.