Re:Why is Jepsen written in Clojure?
by Capricorn2481 on Wednesday December 06, 2023 @10:16AM
(#38544906)
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 ->
Instantiating objects and using their methods is pretty terse and easy when using macros like ->
(def method-result (-> (SomeClass.) (.someMethod "arg1")))