4 ms·
Clojure can draw on the whole Java ecosystem, so it's immediately useful, which gives it a great entry point.
by porlw 14y ago
Clojure can draw on the whole Java ecosystem, so it's immediately useful, which gives it a great entry point.
- jeremyjh 14y agoYes but it also has a package manager and library repository with over 5000 idiomatic Clojure libraries. A lot of projects would not even have to use Java libraries.
- peatmoss 14y agoFor someone already familiar with the Java ecosystem, this can be a huge boon. For someone unfamiliar with Java and the Java ecosystem it can be a little bit daunting. Case in point, I recently had an experience where I was trying to read some binary data with nio. This meant I was reading java docs related to nio trying to figure out a java implementation of what I needed to do. Then I needed to translate this into clojure. As a new clojure user who didn't have quite the grasp of the java interop idioms, my code looked pretty ugly, and with a lot of (. foo (. bar (. baz))) looking stuff. That said, if you're going to have a "problem," a preponderance of usable, high-quality libraries isn't exactly the worst I can think of...