Re: breaking homoiconicity?

2015-06-20 Thread Joe Corneli
On Saturday, June 20, 2015 at 4:15:30 AM UTC+1, Sean Corfield wrote: (.getTypeName (Class/forName [Ljava.lang.String;)) ;;= java.lang.String[] — that is more readable! Thanks, that's helpful for me. By chance do you know if the class is natively recoverable from the

Re: breaking homoiconicity?

2015-06-20 Thread Surgo
Thanks, that's helpful for me. By chance do you know if the class is natively recoverable from the TypeName for Clojure/Java? Class/forName can't roundtrip that string. I could implement a look-up table to translate between the two formats, but that seems rather kludgey. I actually

Re: breaking homoiconicity?

2015-06-20 Thread Sean Corfield
On Jun 20, 2015, at 3:58 AM, Joe Corneli holtzerman...@gmail.com wrote: On Saturday, June 20, 2015 at 4:15:30 AM UTC+1, Sean Corfield wrote: (.getTypeName (Class/forName [Ljava.lang.String;)) ;;= java.lang.String[] — that is more readable! Thanks, that's helpful for me. By

breaking homoiconicity?

2015-06-19 Thread Joe Corneli
This is an interaction with Clojure via CIDER. repl [1] (type (into-array String [Awesome])) [Ljava.lang.String; repl [2] [Ljava.lang.String; RuntimeException EOF while reading, starting at line 1 clojure.lang.Util.runtimeException (Util.java:221) repl [3] (quote [Ljava.lang.String;) CIDER

Re: breaking homoiconicity?

2015-06-19 Thread James Reeves
Most Java types don't have reversible serialisation in Clojure. There's actually only a small subset of data types that can be printed and then read without losing information. - James On 20 June 2015 at 01:08, Joe Corneli holtzerman...@gmail.com wrote: This is an interaction with Clojure via

Re: breaking homoiconicity?

2015-06-19 Thread Sean Corfield
On Jun 19, 2015, at 5:08 PM, Joe Corneli holtzerman...@gmail.com wrote: This is an interaction with Clojure via CIDER. repl [1] (type (into-array String [Awesome])) [Ljava.lang.String; This is a java.lang.Class object whose name is [Ljava.lang.String; because that’s how Java native arrays