rewrite-clj

https://github.com/clj-commons/rewrite-clj
borkdude 2020-09-01T08:39:17.118300Z

TIL you can use aliases in keywords in quoted forms:

(require '[clojure.string :as s]) '{a ::s/foo}

borkdude 2020-09-01T08:40:10.118700Z

There was a bug in clj-kondo with this, where namespace s was considered unused.

borkdude 2020-09-01T08:40:24.119100Z

Luckily babashka does it right ๐Ÿ˜…

$ bb -e "(require '[clojure.string :as s]) '{a ::s/foo}"
{a :clojure.string/foo}

๐Ÿ‘ 2
lread 2020-09-01T17:14:19.121300Z

Interesting. I guess thatโ€™s because it is a reader operation to handle auto-resolves?

borkdude 2020-09-01T20:03:02.121500Z

yes