user= #java.lang.String[hello world]
hello world
user= #java.lang.String[(byte-array) utf8]
IllegalArgumentException No matching ctor found for class java.lang.String
clojure.lang.Reflector.invokeConstructor (Reflector.java:183)
It seems that the CtorReader
Sorry,the error example must be:
user= #java.lang.String[(byte-array 10) utf8]
IllegalArgumentException No matching ctor found for class java.lang.String
clojure.lang.Reflector.invokeConstructor (Reflector.java:183)
2014-08-16 19:59 GMT+08:00 dennis zhuang killme2...@gmail.com:
user=
It's by design, see the section on ctor literals http://clojure.org/reader#toc1
The elements in the vector part are passed unevaluated to the relevant
constructor.
Nicola
dennis zhuang writes:
user= #java.lang.String[hello world]
hello world
user= #java.lang.String[(byte-array) utf8]
Got it.
Thanks for your quick reply.
2014-08-16 20:14 GMT+08:00 Nicola Mometto brobro...@gmail.com:
It's by design, see the section on ctor literals
http://clojure.org/reader#toc1
The elements in the vector part are passed unevaluated to the relevant
constructor.
Nicola
dennis zhuang