This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-22
Channels
- # announcements (4)
- # aws (1)
- # beginners (82)
- # boot (14)
- # braveandtrue (1)
- # calva (73)
- # cider (7)
- # cljs-dev (7)
- # cljsrn (1)
- # clojure (83)
- # clojure-belgium (1)
- # clojure-dev (3)
- # clojure-europe (4)
- # clojure-france (3)
- # clojure-italy (31)
- # clojure-nl (11)
- # clojure-uk (15)
- # clojurescript (19)
- # code-reviews (9)
- # cursive (16)
- # data-science (1)
- # datomic (16)
- # events (1)
- # fulcro (4)
- # graalvm (1)
- # hoplon (7)
- # jackdaw (5)
- # java (10)
- # jobs (6)
- # jobs-discuss (7)
- # juxt (1)
- # leiningen (6)
- # midje (1)
- # off-topic (2)
- # pathom (18)
- # pedestal (1)
- # reagent (8)
- # reitit (2)
- # ring (1)
- # shadow-cljs (38)
- # spacemacs (5)
- # sql (41)
- # vim (10)
- # xtdb (1)
Is there a good way to write out a (is it called "parameterized"?) java type like [Lmy.java.Thing;
so that it can be read later? Is the only way to do it to write it as a string then read it in a macro that turns it into a symbol first?
that type is not a parameterized java type, it's an array of Thing
user=> (class (make-array String 10))
[Ljava.lang.String;
it may help to start with what you're actually trying to accomplish
wasn't try to be snarky, was actually asking :)
sorry if that didn't come across well
I have a big data structure which is the result of analyzing some java classes, for the purpose of wrapping a java api "programatically". It needs the type info of some things to properly wrap them. I have things working for the most part when generate all the data via reflection at the start of my program but I started looking into spitting out the data at edn so that I can just load that instead. (I was hung up a little earlier on an actual issue working with parameterized types so I think that was in my head when I saw these arrays printed)