<div><div>On Thu, Aug 11, 2011 at 12:24 PM, Devin Jeanpierre <span dir="ltr"><<a href="mailto:jeanpierreda@gmail.com">jeanpierreda@gmail.com</a>></span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Javascript also lets you break lines. For example, this does what you want:<br><br>    return 1<br>        + 5<br><br>Whereas this does not<br><br>    return<br>        1 + 5<br><br>Of course, Python would have no such problem, because you could make both cases unambiguous due to the indent.<br>

<font color="#888888">

<br>Devin</font><div><div></div><div class="h5"><br><br></div></div></blockquote>Note that this is already valid and is not a continuation line:</div><div class="gmail_quote"><br></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">

<div><div class="gmail_quote">return 1</div></div><div class="gmail_quote">+5</div><div class="gmail_quote"><br></div></blockquote><div><div class="gmail_quote"><div><div class="gmail_quote">Right now you do not need to indent continuation lines. So in order to disambiguate you would need to enforce indentation for continuations, but for backward compatibility that would only be required when not using parentheses or backslashes. Ick. Can blank lines or comment lines appear between a line and its continuation? That's allowed now as well.</div>

</div><div><div class="gmail_quote"></div></div><div><br></div><div>Now allowing line breaks *after* operators would be unambiguous and would not require new indentation rules. When a line ends with an operator, it's clearly incomplete (so no fear the reader will think the statement has ended unlike the above case) and it's a syntax error today:</div>

<div><br></div></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div class="gmail_quote"><div>return 1 +</div><div>    5</div><div><br></div><div>x = y > 0 and</div>

<div>   y < 10</div></div></div></blockquote><div><div class="gmail_quote"><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">This code is not valid today without parens or \ regardless of indentation. I'm +0 on this. I'd use it but does it really add enough convenience?</font></div>

<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">--- Bruce</font></div><div><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; ">Follow me: <a href="http://www.twitter.com/Vroo" target="_blank">http://www.twitter.com/Vroo</a> <a href="http://www.vroospeak.com/" target="_blank">http://www.vroospeak.com</a></span> </div>

</div></div>