Why can't I use Clojure's :^const with a Java byte array?
问题 Using lein repl with Clojure 1.4.0, I can define a ^:const of a Java byte array, but I can't then do anything with it: user=> (def x (byte-array (map byte [0 1 2 3]))) #'user/x user=> (alength x) 4 user=> (type x) [B user=> (def ^:const cx (byte-array (map byte [0 1 2 3]))) #'user/cx user=> (alength cx) CompilerException java.lang.RuntimeException: Can't embed object in code, maybe print-dup not defined: [B@10e6cbd, compiling:(NO_SOURCE_PATH:1) user=> (type cx) CompilerException java.lang