Use resolve and var-get instead of eval

This commit is contained in:
Lee Spector 2020-06-07 16:43:34 -04:00
parent bef1c112ff
commit 601f53f6b1

View File

@ -7,7 +7,7 @@
(let [popped-state (pop-stack state :exec)
first-raw (first (:exec state))
first-instruction (if (symbol? first-raw)
(eval first-raw)
(var-get (resolve first-raw))
first-raw)]
(cond
(fn? first-instruction)