4 ms·
Unless I am mistaking, Java 8 fails to address the major pain-point I have with Java: hash and array literals. For me, one of the big wins of both Clojure and
by mark_l_watson 14y ago
Unless I am mistaking, Java 8 fails to address the major pain-point I have with Java: hash and array literals.
For me, one of the big wins of both Clojure and Scala is being able to handle maps, sequences, etc. conveniently.
- abraininavat 14y agoDon't forget Groovy
- pswenson 14y agojava's main principle: preserving backwards compatibility. this is why the iterations are so small and take so long. java tip: don't look at other languages or you'll get depressed at how easy things could be or even should be
- quatrevingts 14y agoReally? new double[] { 1.0, 2.0 }? Arrays.asList("foo", "bar")? Guava's Map builders? Lambdas are what make operations on data structures convenient in Scala and Clojure, not saving a few characters on the handful of literals in your code.