Use resolve and var-get instead of eval
This commit is contained in:
parent
bef1c112ff
commit
601f53f6b1
@ -7,7 +7,7 @@
|
|||||||
(let [popped-state (pop-stack state :exec)
|
(let [popped-state (pop-stack state :exec)
|
||||||
first-raw (first (:exec state))
|
first-raw (first (:exec state))
|
||||||
first-instruction (if (symbol? first-raw)
|
first-instruction (if (symbol? first-raw)
|
||||||
(eval first-raw)
|
(var-get (resolve first-raw))
|
||||||
first-raw)]
|
first-raw)]
|
||||||
(cond
|
(cond
|
||||||
(fn? first-instruction)
|
(fn? first-instruction)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user