clojure-austin

2025-10-14T14:20:08.742939Z

From last night:

norman> (java.util.List/of ^"[Ljava.lang.Object;" (into-array Object (range 20)))
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19]
norman> (java.util.List/of ^Object/1 (into-array Object (range 20)))
[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19]

1
Joel 2025-10-19T07:57:35.526789Z

using param tags (Clojure 1.12)

(^[objects] java.util.List/of (to-array (range 20)))

2025-10-19T16:19:31.657749Z

I was not aware of this syntax - nice

Joel 2025-10-20T01:16:44.376969Z

Yeah, I guess I didn't catch it when it came out. It makes selecting the right overload when doing interop a lot easier since you can just specify it rather than counting on type hints on the arguments.