This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-01
Channels
- # announcements (2)
- # architecture (8)
- # babashka (22)
- # beginners (75)
- # calva (3)
- # clj-kondo (6)
- # cljdoc (6)
- # cljs-dev (10)
- # clojars (4)
- # clojure (94)
- # clojure-europe (12)
- # clojure-nl (4)
- # clojure-norway (3)
- # clojure-spec (6)
- # clojure-uk (4)
- # clojurescript (51)
- # community-development (13)
- # core-async (3)
- # css (1)
- # cursive (8)
- # datomic (7)
- # girouette (3)
- # graphql (3)
- # improve-getting-started (4)
- # integrant (2)
- # interop (5)
- # jobs (12)
- # kaocha (1)
- # lsp (24)
- # malli (4)
- # membrane (13)
- # nextjournal (9)
- # off-topic (6)
- # re-frame (9)
- # reitit (2)
- # remote-jobs (1)
- # reveal (4)
- # ring (4)
- # scittle (3)
- # shadow-cljs (4)
- # spacemacs (1)
- # testing (2)
- # vrac (1)
Hi 👋 How do I type annotate a call to this so as to avoid reflection https://github.com/asciidoctor/asciidoctorj/blob/4f72f07f1f50eb5cf73d3cda08261c04a685ce20/asciidoctorj-api/src/main/java/org/asciidoctor/Asciidoctor.java#L44
the best I could come up with was ^"[Ljava.util.Map<String, Object>;"
which didnt seem to work
The generics are erased in the jvm so just ^java.util.Map is a sufficient type for the 2nd arg
👍 1
@retrogradeorbit Also "[L...;"
means "array of" so your type hint was sort of saying java.util.Map[]