JavaScript 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.
Re:Modern Java – A Guide to Java 8
by mark_l_watson on Monday November 16, 2015 @10:51AM
(#10575062)
I 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.
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.