The former seems to be a bug in parse causing it to raise an error even when the raise option is false. I've opened an issue: https://github.com/JuliaLang/julia/issues/6089.
On Sun, Mar 9, 2014 at 3:55 PM, Laszlo Hars <[email protected]> wrote: > ...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\" " > ~~~ >
