rewrite-clj 2020-09-01

TIL you can use aliases in keywords in quoted forms:

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

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

Luckily babashka does it right ๐Ÿ˜…

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

๐Ÿ‘ 2

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