Skip to content

Instantly share code, notes, and snippets.

@pjstadig
Created July 23, 2013 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjstadig/6061459 to your computer and use it in GitHub Desktop.
Save pjstadig/6061459 to your computer and use it in GitHub Desktop.
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