Hacker News new | ask | show | jobs
by shanemhansen 3382 days ago
Clojure does allow type annotations that are used to avoid reflection. https://clojure.org/reference/java_interop#Java%20Interop-Ty...

    (defn len2 [^String x]
      (.length x))