Re: No matching field found: length for class byte array

2019-03-18 Thread 'somewhat-functional-programmer' via Clojure
These are so old, but I (still) often find them laugh-out-loud amusing :-) https://despair.com/products/apathy No offense is meant :-). This next one is an apt description of me when I was super-obsessed with clojure startup time: https://despair.com/collections/retired/products/stupidity I'm t

Re: No matching field found: length for class byte array

2019-03-18 Thread Alex Miller
Too far down the slippery slope for me. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscr

Re: No matching field found: length for class byte array

2019-03-18 Thread Matching Socks
That suggestion of a more humane and helpful error message (", use alength function for array length") is Jira ticket 1448 . Back in 2014, it got closed as "declined". But that was before the recent growth of interest in usable error messages. The

Re: No matching field found: length for class byte array

2019-03-17 Thread Jesús Gómez
I just lost 1 hour of my life for this. Thank you. El miércoles, 1 de julio de 2015, 22:37:25 (UTC-2:30), Colin Taylor escribió: > > Yep you're in a cast of confused hundreds? thousands? here. It's quickly > googlable but I'd still prefer to see my (rejected) humane suggestion in > the error.

No matching field found: length for class byte array

2015-07-01 Thread Colin Taylor
Yep you're in a cast of confused hundreds? thousands? here. It's quickly googlable but I'd still prefer to see my (rejected) humane suggestion in the error. While I don't advocate coding lessons in error messages, this really is an anomalous Java detail leaking through. user=> (.length (int-arr

No matching field found: length for class byte array

2015-07-01 Thread Alex Miller
Length is kind of a fake field. Use the Clojure alength function. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with you

No matching field found: length for class byte array

2015-07-01 Thread gingersafflower
If I do this: json-for-nlp (cheshire/generate-string map-for-nlp) byte-array-json (.getBytes json-for-nlp) I assume I now have an array of bytes. But if I do: (.length byte-array-json) I get: No matching field found: length for class Why is that? More info below.