<div dir="ltr"><div>There is no *need* of it as such it just what the syntax allows. I think we should require the parentheses again and make the current usage a syntax error.<br><br></div>Robert<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 April 2017 at 04:24, 赵 汉 <span dir="ltr"><<a href="mailto:botanyzh@live.cn" target="_blank">botanyzh@live.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="#954F72" lang="ZH-CN">
<div class="m_-8586735468975101352WordSection1">
<p class="MsoNormal"><span lang="EN-US">I still don’t get the sense , </span><span style="font-size:10.0pt;font-family:"Segoe UI",sans-serif;color:#555555;background:white" lang="EN-US">What is the need for such weird appending use?</span><span style="font-size:11.0pt" lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal">发送自<span lang="EN-US"> Windows 10 </span>版<span lang="EN-US"><a href="https://go.microsoft.com/fwlink/?LinkId=550986" target="_blank"><span lang="EN-US"><span lang="EN-US">邮件</span></span></a></span>应用</p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><b>发件人<span lang="EN-US">: </span>
</b><span lang="EN-US"><a href="mailto:rvirding@gmail.com" target="_blank">Robert Virding</a><br>
</span><b>发送时间<span lang="EN-US">: </span></b><span lang="EN-US">2017</span>年<span lang="EN-US">4</span>月<span lang="EN-US">14</span>日<span lang="EN-US"> 8:15<br>
</span><b>收件人<span lang="EN-US">: </span></b><span lang="EN-US"><a href="mailto:dmytro.lytovchenko@gmail.com" target="_blank">Dmytro Lytovchenko</a><br>
</span><b>抄送<span lang="EN-US">: </span></b><span lang="EN-US"><a href="mailto:erlang-questions@erlang.org" target="_blank">Erlang Questions</a>;
<a href="mailto:dozzie@jarowit.net" target="_blank">Stanislaw Klekot</a><br>
</span><b>主题<span lang="EN-US">: </span></b><span lang="EN-US">Re: [erlang-questions] Is it a compiler bug?</span></p>
</div><div><div class="h5">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;text-align:left" align="left"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US">IIRC originally parentheses were required around the first was required which would have caught this case. The requirement
was then removed, but I don't know why. Perhaps to save the extra 2 chars. :-)</span><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US"><u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US">On 13 April 2017 at 16:43, Dmytro Lytovchenko <<a href="mailto:dmytro.lytovchenko@gmail.com" target="_blank">dmytro.lytovchenko@gmail.com</a>> wrote:<u></u><u></u></span></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US">I can see how enforcing parentheses in map()map() syntax can be useful.
<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US">A compiler warning would be awesome here. Also this is a nice thing for Elvis style checker to do, but when it comes to running Elvis, your program should already be correct
— so that is too late.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US">In variable()map() syntax there is no confusion so that is fine.<u></u><u></u></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US">2017-04-13 16:14 GMT+02:00 Jesper Louis Andersen <<a href="mailto:jesper.louis.andersen@gmail.com" target="_blank">jesper.louis.andersen@gmail.<wbr>com</a>>:<u></u><u></u></span></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US">No, it is not stupidity in any way.
<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US">People hit this now and again. It makes sense to solve the problem this way. I remember we considered the alternative, which is to reject the notion, but this requires some
special-handling in the compiler and isn't clear-cut either.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US">In short, regarding this as an invalid expression is to a certain extent possible, and certainly desirable. But we run into subtle problems when we want to reject it too, which
is what complicates matters.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US">I think it is healthy to challenge certain design decisions in Erlang, especially because dynamically typed languages tend to have corner cases in their semantics which are
hard to handle in general.<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US"><u></u> <u></u></span></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US">On Thu, Apr 13, 2017 at 4:04 PM Minin Maxim <<a href="mailto:Maxim.Minin@baaderbank.de" target="_blank">Maxim.Minin@baaderbank.de</a>> wrote:<u></u><u></u></span></p>
</div>
</div>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">I'm so stupid today
</span><span style="font-family:Wingdings;color:#1f497d" lang="DE">J</span><span style="color:#1f497d" lang="DE">
</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="DE"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Thanks guys (Robert & Stanislaw)</span><span lang="DE"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Cheers</span><span lang="DE"><u></u><u></u></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Maxim</span><span lang="DE"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"> </span><span lang="DE"><u></u><u></u></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US">______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><u></u><u></u></span></p>
</blockquote>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US"><br>
______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><u></u><u></u></span></p>
</blockquote>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US"><u></u> <u></u></span></p>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US"><br>
______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><u></u><u></u></span></p>
</blockquote>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:SimSun" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"><u></u> <u></u></span></p>
</div></div></div>
</div>
</blockquote></div><br></div>