<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Nov 17, 2014 at 4:56 PM, Robert Virding <span dir="ltr"><<a href="mailto:rvirding@gmail.com" target="_blank">rvirding@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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. :-)<span><font color="#888888"><br></font></span></div></div></blockquote><div><br></div><div>Is a single variable not an expression? It would be inconsistent if only some expressions would need parentheses! </div><div><br></div><div>;-)</div><div><br></div><div>regards,<br></div><div>Vlad</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span><font color="#888888"></font></span></div><span><font color="#888888">Robert<br><br></font></span></div><div><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><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><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><div><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>
</div></div><br>_______________________________________________<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/listinfo/erlang-bugs</a><br>
<br></blockquote></div><br></div></div>