<div dir="ltr"><div>The obvious solution is to reinstate the need to wrap the "thing" before the # with parentheses when it is and expression. Then the problem would go away. :-)<br><br></div>Robert<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 16 November 2014 22:12, PAILLEAU Eric <span dir="ltr"><<a href="mailto:eric.pailleau@wanadoo.fr" target="_blank">eric.pailleau@wanadoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le 16/11/2014 21:54, Roland Karlsson a écrit :<span class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Concatenating of two strings is an exception I assume.<br>
I am not knowledgeable enough in Erlang syntax to explain why it works.<br>
Need help of someone else.<br>
</blockquote>
<br></span>
It is written in documentation.<br>
<br>
"Two adjacent string literals are concatenated into one. This is done at compile-time and does not incur any runtime overhead"<br>
<br>
I don't fight for this syntax, I think it add more inconsistency in syntax.<br>
<br>
By the way, this syntax only work at first expansion ,<br>
this below module will never compile ...<br>
<br>
---8<-------------------------<u></u>--------------<br>
-module(test).<br>
<br>
-export([main/0]).<br>
<br>
-record(test,{a=0, b=0}).<br>
<br>
main() -> left()right().<br>
<br>
left() -> #test{2}.<br>
<br>
right() -> #test{a=6}.<br>
---8<-------------------------<u></u>--------------<span class=""><br>
<br>
<br>
"You are misunderstanding the record and tuple syntax."<br>
<br></span>
Not at all .<br>
<br>
Documentation says "However, record is not a true data type. Instead record expressions are translated to tuple expressions during compilation. "<br>
<br>
Records are not existing in Erlang , only in syntax.<br>
<br>
my last mail on this.<br>
Anyway, I will never use this syntax.<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
erlang-bugs mailing list<br>
<a href="mailto:erlang-bugs@erlang.org" target="_blank">erlang-bugs@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-bugs" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-bugs</a><br>
</div></div></blockquote></div><br></div>