java

2020-07-15T13:47:36.032900Z

Is there a built in way in clojure.reflect to get a type string that looks like "L[my.Type" instead of "my.Type[]" (or <>)

2020-07-15T13:47:59.033500Z

to get one suitable for use in :tag metadata

2020-07-15T13:49:57.034300Z

Alternatively, would the obvious string manipulation be all that's needed to handled all cases of [] there?

seancorfield 2020-07-15T17:29:36.035300Z

@jjttjj If you do (.getName (class some-array)) you will get the format you want, i.e., not using clojure.reflect.

2020-07-15T20:37:42.035400Z

Thanks that works