Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

Currently it is possible to override clojure.core/in-ns and clojure.core/ns, but it is not possible to refer to the namespace-specific vars without fully qualifying them:

`
user=> (ns foo (:refer-clojure :exclude [in-ns]))
nil
foo=> (def in-ns 1)

'foo/in-ns

foo=> in-ns

<clojure.lang.RT$1@76b5e4c5>

`

After this patch, overriding in-ns and ns works like for every other clojure.core var:

`
user=> (ns foo (:refer-clojure :exclude [in-ns]))
nil
foo=> (def in-ns 1)

'foo/in-ns

foo=> in-ns
1
`

2 Answers

0 votes
by

Comment made by: arrdem

This is motivated by https://github.com/jonase/eastwood/issues/100

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-1582 (reported by bronsa)
...