I would say that is a bug... that `\\` doesn't become `\`.
On Wednesday, December 4, 2013 at 4:03:43 AM UTC+1, Stefan Karpinski wrote: > > Right, what I actually meant was removing backslashes when they occur in > the input before your quote string (double quote, typically). But I > actually think we're already doing this: > > julia> macro L_str(s) > s > end > > julia> L"\"" > "\"" > > julia> L"foo\"\x" > "foo\"\\x" > > julia> print(L"foo\"\x") > foo"\x > > > The backslash before the " disappears while the backslash before the x > does not. However, that means that you can't, e.g. pass to a string macro a > string ending with a single backslash: > > julia> print(L"foo\\") > foo\\ > > > > On Tue, Dec 3, 2013 at 10:24 PM, Steven G. Johnson <steve...@gmail.com > <javascript:>> wrote: > >> String macros in general treat everything literally, as Stefan alluded >> to. I use this in PyPlot to define an L"..." macro for LaTeX. In that >> context, is is important not to escape backslashes either, so that you can >> do e.g. L"blah $\sqrt{\alpha}$" >> > >