<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">If this is *really* necessary, wouldn't it be less confusing (or even more consistent) to consider:<div><br></div><div style="font-size: 15px; ">1> 'foo' \</div><div style="font-size: 15px; ">1> 'bar'.</div><div style="font-size: 15px; ">foobar</div><div style="font-size: 15px; ">2></div><div><br></div><div>whereas: </div><div><br></div><div style="font-size: 15px; ">3> 'foo</div><div style="font-size: 15px; ">3>bar'</div><div style="font-size: 15px; ">'foo\nbar'</div><div style="font-size: 15px; ">4></div><div><br></div><div>includes a new line -- as already does.</div><div><br></div><div>Kind regards</div><div><br></div><div>V/</div><div><br><div><div>On 26 Feb 2014, at 11:29 AM, Hynek Vychodil wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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>
_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>http://erlang.org/mailman/listinfo/erlang-questions<br></blockquote></div><br></div></body></html>