3 ms·
I have been using Java since the first beta, and have written a large pile of Java books (pun not intended), but I too prefer Clojure as a practical, simple to
by mark_l_watson 11y ago
I have been using Java since the first beta, and have written a large pile of Java books (pun not intended), but I too prefer Clojure as a practical, simple to use and simple to read language. That said, Clojure / Java interop is really nice. I frequently find myself simply adding existing Java code to my lein project file.
I would suggest just keep using Clojure and when it makes sense, mix in Java when you want or need to.
- chvid 11y agoThis might sound like a snarky comment but it is actually not. If you want a dynamic language on the Java platform; then why not use JavaScript? There is an easy-to-use engine in Java 8 and JavaScript is widespread and somehow familiar to Java-developers.
- mark_l_watson 11y agoI like JavaScript for Meteor.js and general front end development but I have never thought to use embedded JavaScript. Clojure is a practical little language and suits my taste.
- lmm 11y agoJavaScript is just not a nice language to maintain - bizarre scoping, confusing inheritance model, extremely clunky syntax, confusing standard data types. Being "dynamic" isn't a feature so much as an acceptable cost, but JavaScript doesn't really give me any expressibility advantage over straight Java, yet alone compared to Scala.