4 ms·
I'm not the most knowledgeable on this, but in general, Clojure has smart ways to convert data types from Java types to Clojure ones. Just like Clojure lets you
by Capricorn2481 3y ago
I'm not the most knowledgeable on this, but in general, Clojure has smart ways to convert data types from Java types to Clojure ones. Just like Clojure lets you use functions on a lot of different data types (mapping over vectors, objects, etc), it lets you do the same with Java collections.
Instantiating objects and using their methods is pretty terse and easy when using macros like ->
(def method-result (-> (SomeClass.)
(.someMethod "arg1")))