On Mon, Nov 7, 2016 at 10:06 PM, cdm <cdmclean....@gmail.com> wrote:
>
> in the terminal:
>
> julia> a = "i have \$100 ..."
> "i have \$100 ..."
>
> julia> aa = eval(a)
> "i have \$100 ..."

^^ FWIW, this is a no-op

>
> julia> a == aa
> true

^^ Which should make this not very surprising.

>
> julia> b = println(a)
> i have $100 ...

`println` prints it, and does not return the string it prints

>
> julia> b == a
> false
>

^^ Which is why this does not mean anything at all.

>
>
> so, more "stuff" is happening
> within the println() function ...

No. println/print output the string, show/display prints it as an
object and do so in a way that shows more detail about the string
itself.
Note that the quote isn't part of the string either so it shouldn't be
surprising that the character `$` is printed as `\$` when showing a
quoted string.

>
>

Reply via email to