Created
July 23, 2013 10:43
-
-
Save pjstadig/6061490 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paul@jane:~/src/sybilant$ clojure | |
Clojure 1.5.1 | |
user=> (set! *warn-on-reflection* true) | |
true | |
user=> (defn foo [] (byte-array [(byte 1) (byte 2)])) | |
#'user/foo | |
user=> (alength (foo)) | |
Reflection warning, NO_SOURCE_PATH:3:1 - call to alength can't be resolved. | |
2 | |
user=> (defn foo ^bytes [] (byte-array [(byte 1) (byte 2)])) | |
#'user/foo | |
user=> (alength (foo)) | |
2 | |
user=> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment