News for hackers. Stuff that matters.
Re:Java is confusing, Clojure is simple by zxczxc111 on Friday May 10, 2019 @08:43AM (#19877172)
The author forgot to mention that you can have immutable collections in Java but then praises Clojure's immutable collections. The Java coded provided will produce warnings due to the mixing of generics and raw types and actually I had no idea about what the output of the Clojure code would be because the author assumes that you have no questions "once a Clojure learner gets used to Clojure syntax". Once you learn that there's a difference between primitives and objects then the Java example becomes just as clear. Moot article.
Re:Java is confusing, Clojure is simple by Quekid5 on Saturday May 11, 2019 @02:29PM (#19887603)
Yeah, seems like:

a) category error: The simplicity in the example is due to immutability, not language choice.

b) familiarity bias: I've learned X therefore it's simpler than Y. (It might be true, but you'd need a lot more supporting evidence than relying on point a.)

... anyway.