Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
paul@jane:~$ clojure
Clojure 1.5.1
user=> (set! *warn-on-reflection* true)
true
user=> (let [x (apply byte-array [1])] (alength x))
Reflection warning, NO_SOURCE_PATH:2:33 - call to alength can't be resolved.
1
user=> (let [x ^bytes (apply byte-array [1])] (alength x))
1
user=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.