3 ms·
Clojure does allow type annotations that are used to avoid reflection. https://clojure.org/reference/java_interop#Java%20Interop-Type%20Hints https://clojure.or
by shanemhansen 10y ago
Clojure does allow type annotations that are used to avoid reflection. https://clojure.org/reference/java_interop#Java%20Interop-Type%20Hints https://clojure.org/reference/java_interop#Java%20Interop-Ty...
(defn len2 [^String x]
(.length x))