<div dir="ltr">I can see how enforcing parentheses in map()map() syntax can be useful.<div>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.</div><div><br><div>In variable()map() syntax there is no confusion so that is fine.</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-13 16:14 GMT+02:00 Jesper Louis Andersen <span dir="ltr"><<a href="mailto:jesper.louis.andersen@gmail.com" target="_blank">jesper.louis.andersen@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">No, it is not stupidity in any way.<div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>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.</div></div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">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:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div lang="DE" link="blue" vlink="purple">
<div class="m_-8063371177188123036m_-5819435181125020257WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I'm so stupid today
</span><span style="font-size:11.0pt;font-family:Wingdings;color:#1f497d">J</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">
<span lang="EN-US"><u></u><u></u></span></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks guys (Robert & Stanislaw)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cheers<u></u><u></u></span></p></div></div><div lang="DE" link="blue" vlink="purple"><div class="m_-8063371177188123036m_-5819435181125020257WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Maxim<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
</div></div></div></div>
______________________________<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" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
</blockquote></div>
<br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>