I was trying something like
(let [x 1] (load-string "(str x)"))
But it gave me an error saying:
CompilerException java.lang.RuntimeException: Unable to resolve symbol: x in this context, compiling:(null:1:1)
I am not able to understand why the load-string
function is not able to resolve the x
symbol in the let
block.
I am able to execute it if I define a symbol x
in the global scope, but that is not what I want.