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-01T15:45:05.119500Z

Yep, good points. My first crack at supporting namespaced maps uses the illegal Clojure symbol ::. My next version wonโ€™t do that. :simple_smile:

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

2020-09-01T21:57:14.121700Z

he he ๐Ÿ™‚