Fork me on GitHub

(aset (object-array 1) 0 0)
emits a reflection warning. What is the correct way to hint this ?

Eccentric J12:09:28

@leonoel does (def my-array (into-array Integer/TYPE [1 2 3])) work? It’s the example from

Eccentric J12:09:26

(int-array) might get you there too


no, I need to store values of arbitrary types so the array can't be primitive and values must be boxed

Jan K12:09:56

not sure if this is a good idea, but no reflection warning: (aset (object-array 1) 0 (Long. 0))


not sure either


for now my workaround is (aset (object-array 1) 0 (identity 0)) and this feels utterly clumsy


Is there a way to get more detailed error messages when parsing EDN? In my limited tests, edn/read-string doesn’t say much about what was expected


what would ya'll use for service-to-service auth?


buddy / friend seem pretty focused on user auth


@bbrinck I have not compared the error messages for invalid edn data between the edn reader built into Clojure vs. the one in the library tools.reader, but if it matters to you I would try some experiments to see.


I think both of those readers can take a Java LineNumberingPushbackReader and you can then get some line and column number info, either attached to the parsed data, or maybe also in the error messages.


Thanks for the idea on using LNPR - I used it to print better errors for EDN parsing errors in check-deps. Thanks!


@andy.fingerhut good ideas. Thanks!