Fork me on GitHub
#clojure-dev
<
2021-11-19
>
seancorfield16:11:53

Looking at CLJ-2665 (in the 1.11 list mentioned in the latest deref), it has a caveat that seems to imply that if you use :refer with :as-alias the ns will not be loaded (based on the current patch) -- am I reading that correctly?

Alex Miller (Clojure team)16:11:26

there are some parts of this patch that are still up for debate and it has not been reviewed by Rich yet

seancorfield16:11:35

Cool. Thanks. Just wanted to check I had read it correctly.

Alex Miller (Clojure team)16:11:38

:as-alias says "don't require loading", :refer depends on loading, so you should really use :as in this case. really, everything about this is weird due to the history of use/require and as/as-alias. it's hard to back your way into a semantic model after the fact.

seancorfield16:11:52

Linters will have fun...

borkdude16:11:07

clj-kondo could probably warn about :as-alias + :refer

Alex Miller (Clojure team)16:11:40

well you might want to wait till it settles :)

borkdude16:11:46

it already supports this, it just doesn't warn. sure

Ben Sless17:11:29

Is there a chance https://clojure.atlassian.net/browse/CLJ-1239 will make it in to 1.11?