Closed jcguu95 closed 5 months ago
Sorry, I overlooked. It's specified in one test tests/step6_file.mal
.
;; Checking that eval does not use local environments.
(def! a 1)
;=>1
(let* (a 2) (eval (read-string "a")))
;=>1
I wonder why this design though.
Thanks for creating
mal
!I'm playing with your python implementation. I'm a bit confused with the following behavior.
In the python implementation
stepA
,eval
always refers to the global environmentrepl_env
. The source code is the following.QUESTION Is this intended behavior? In both emacs-lisp and common-lisp, the equivalent code yields
100
.