<div dir="ltr">I fully agree with Richard. Backslash is escape character and it should escape next character so this newline should be omitted. It is definitely bug and unexpected behavior.<div><br></div><div>With best regards</div>
<div>   Hynek Vychodil</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 18, 2014 at 11:57 PM, Richard A. O'Keefe <span dir="ltr"><<a href="mailto:ok@cs.otago.ac.nz" target="_blank">ok@cs.otago.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><br>
On 19/02/2014, at 10:33 AM, Vlad Dumitrescu wrote:<br>
> Eshell V5.10.4  (abort with ^G)<br>
> 1> 'foo\n\<br>
> 1> bar'.<br>
> 'foo\n\nbar'<br>
><br>
> I had expected that <backslash><newline> would<br>
> - be rejected as a syntax error, or<br>
> - be discarded like in C and Prolog.<br>
><br>
> I did _not_ expect it to turn into <newline>.<br>
><br>
><br>
> Actually, what I was referring to was that that last backslash isn't really needed at all.<br>
<br>
</div>No, the last backslash IS needed because I *don't* want<br>
the newline.  In ISO Prolog I can write<br>
        |p('foo\|<br>
        |bar\|<br>
        |zoo').'|<br>
where the vertical bars show record boundaries,<br>
and get the same effect as<br>
        |p('foobarzoo').|<br>
<br>
You are concerned about atoms that include newline characters.<br>
I am concerned about atoms that for one reason or another<br>
need to be split over lines WITHOUT introducing newline characters.<br>
<br>
I just want \<newline> to work sensibly and to be so documented.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>