...a couple of examples, why eval(quote...end) is better than 
eval(parse("...")):
~~~
julia> eval(parse("x=1
x+1"))
# -> ERROR: extra token after end of expression
# in parse at string.jl:1219

julia> eval(quote x=1
   x+1 end)
# -> 2
~~~
julia> eval(parse("a = \"ab \"cd\"  \"")) # need to escape inside quote 
chars, somehow
# -> ERROR: @cd_str not defined
### what does this error mean???

julia> eval(quote a = "ab \"cd\" " end)
# -> "ab \"cd\" "
~~~

Reply via email to