Fork me on GitHub
#rewrite-clj
<
2020-09-01
>
borkdude08:09:17

TIL you can use aliases in keywords in quoted forms:

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

borkdude08:09:10

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

borkdude08:09:24

Luckily babashka does it right 😅

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

👍 6
lread17:09:19

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