You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe it's f724f0e (I'm using babaska 0.2.7 and it looks like that's the version of sci included)
platform
Mac binary
problem
If you replace a function from clojure.core with a new implementation, and then you use the backtick to resolve the function, sci will assume you are referencing the clojure.core version.
repro
My repro is in babaska: run the below with bb repro.clj
"in custom 'and'"
{:expr (clojure.core/and true false), :result false}
"in custom 'inc'"
{:expr (clojure.core/inc 1), :result 1}
You can see that:
the custom function and macro are being called correctly
but when using the backtick, the namespace is clojure.core, not repro
expected behavior
Run the same code with the clojure CLI (version 1.10.1.763) with clj -M repro.clj and it will print out:
WARNING: and already refers to: #'clojure.core/and in namespace: repro, being replaced by: #'repro/and
"in custom 'and'"
{:expr (repro/and true false), :result false}
WARNING: inc already refers to: #'clojure.core/inc in namespace: repro, being replaced by: #'repro/inc
"in custom 'inc'"
{:expr (repro/inc 1), :result 1}
I would expect the backtick to expand to repro/and and repro/inc, like it does in the Clojure example.
version
I believe it's f724f0e (I'm using babaska 0.2.7 and it looks like that's the version of sci included)
platform
Mac binary
problem
If you replace a function from
clojure.core
with a new implementation, and then you use the backtick to resolve the function, sci will assume you are referencing theclojure.core
version.repro
My repro is in babaska: run the below with
bb repro.clj
This will print out:
You can see that:
clojure.core
, notrepro
expected behavior
Run the same code with the clojure CLI (version 1.10.1.763) with
clj -M repro.clj
and it will print out:I would expect the backtick to expand to
repro/and
andrepro/inc
, like it does in the Clojure example.Note: the reason I ran into this that https://github.com/borkdude/spartan.spec prints a confusing output when you call
s/form
:The text was updated successfully, but these errors were encountered: