<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 30, 2014 at 8:59 AM, Brendan Eich <span dir="ltr"><<a href="mailto:brendan@mozilla.com" target="_blank">brendan@mozilla.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>John Lenz wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
In my model<br>
<br>
if (y) let x = 42<br>
<br>
is equivalent to<br>
<br>
if (y) {<br>
  let x = 42<br>
}<br>
<br>
and it is clear "x" in "alert(x)" is 0;<br>
</blockquote>
<br></div>
It is as clear as those invisible braces in your model's input :-P.<br>
<br>
Come on, this is silly.</blockquote><div> </div><div>Not silly. Can you suggest any on-line that most JS developers can understand discussing how these two forms differ?<br></div><div><br></div><div>Here are some that describe them as equivalent:</div>

<div><br></div><div><a href="http://en.wikipedia.org/wiki/JavaScript_syntax#If_..._else" target="_blank">http://en.wikipedia.org/wiki/JavaScript_syntax#If_..._else</a><br></div><div><a href="http://msdn.microsoft.com/en-us/library/kw1tezhk(v=vs.94).aspx" target="_blank">http://msdn.microsoft.com/en-us/library/kw1tezhk(v=vs.94).aspx</a><br>

</div><div><a href="http://programmers.stackexchange.com/questions/16528/single-statement-if-block-braces-or-no">http://programmers.stackexchange.com/questions/16528/single-statement-if-block-braces-or-no</a><br></div><div>
<a href="http://publib.boulder.ibm.com/infocenter/comphelp/v7v91/index.jsp?topic=%2Fcom.ibm.vacpp7a.doc%2Flanguage%2Fref%2Fclrc08csor.htm">http://publib.boulder.ibm.com/infocenter/comphelp/v7v91/index.jsp?topic=%2Fcom.ibm.vacpp7a.doc%2Flanguage%2Fref%2Fclrc08csor.htm</a><br>
</div><div><a href="http://msdn.microsoft.com/en-us/library/ms173143.aspx">http://msdn.microsoft.com/en-us/library/ms173143.aspx</a><br></div><div><br></div><div>and so on across multiple languages.  Whether or not you think these forms should be different, programmers don't expect them to differ.</div>
<div><br></div><div>jjb</div></div></div></div>