Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alter-meta! spans evaluation #733

Closed
devn opened this issue May 15, 2022 · 0 comments
Closed

alter-meta! spans evaluation #733

devn opened this issue May 15, 2022 · 0 comments

Comments

@devn
Copy link

devn commented May 15, 2022

version

0.3.5

platform

JVM 17

problem

alter-meta! can modify metadata on vars within SCI, making future evaluation produce odd results.

repro

(sci/eval-string "(-> 1 inc inc)") ;; => 3
(sci/eval-string "(alter-meta! #'-> dissoc :macro)") ;; => nil
(sci/eval-string "(-> 1 inc inc)") ;; => #function[clojure.core/inc]

expected behavior

(sci/eval-string "(-> 1 inc inc)") ;; => 3
(sci/eval-string "(alter-meta! #'-> dissoc :macro)") ;; => nil
(sci/eval-string "(-> 1 inc inc)") ;; => 3

Sponsor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant