? Please note I'm using revision 1195.
user= (alength nil)
java.lang.IllegalArgumentException: More than one matching method
found: alength (NO_SOURCE_FILE:146)
The docs say Works on arrays of all types and last I checked, nil is
not an array of any type.
What would you expect it to do?
--Chouser
by the behavior. Is this a bug or expected
behavior? Please note I'm using revision 1195.
user= (alength nil)
java.lang.IllegalArgumentException: More than one matching method
found: alength (NO_SOURCE_FILE:146)
The docs say Works on arrays of all types and last I checked, nil
Well, I'm guessing that the multiple methods exception is due to the
fact that the value of null in Java is not typed - that is to say,
there is no such thing as a null String versus a null Integer -
null is just null. If you pass a value of null to something that has
multiple implementations,
)
java.lang.IllegalArgumentException: More than one matching method
found: alength (NO_SOURCE_FILE:146)
user= (.printStackTrace *e)
java.lang.IllegalArgumentException: More than one matching method
found: alength (NO_SOURCE_FILE:146)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:4139