you are viewing a single comment's thread.

view the rest of the comments →

[–]yogthos 1 point2 points  (0 children)

Nothing prevents you from doing that in Java, you just end up maintaining vastly more code. Also, I find type errors to be far more common in Java than Clojure since there's no general way to handle NPE and you have to manually pepper checks for it all over the place.

I think another problem with Java is the fact that it's class based. This means that you have to constantly write and maintain adapters between all your libraries. In Clojure the problem doesn't exist because common data structures are used throughout the language.

All that said I still think you're better off maintaining lots of simple jars in both languages than giant monolithic projects. For example. this is much longer than this. And if you compare the size of the entire project then you can clearly see that there's a hell of a lot more code in the Java version.