<div dir="ltr">I agree with that idea in general, but I do think that a with statement having parentheses would not be confusing for users to parse even though it would not be LL(1).<div><div><br>On Monday, February 16, 2015 at 4:53:05 AM UTC-5, Paul Moore wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">On 16 February 2015 at 05:40, Neil Girdhar <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_TS922c3Gt4J" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">miste...@gmail.com</a>> wrote:
<br>> Personally, I would rather wait for a day far away when Python removes the
<br>> LL(1) grammar restriction than introduce weird new syntax. Maybe when the
<br>> reference standard Python is written in Python and Python has a good parser
<br>> module. With backtracking, it should be fine and unambiguous.
<br>
<br>Note that the fact that the parser is LL(1) is a design feature rather
<br>than a limitation. Guido has certainly in the past indicated that it's
<br>a deliberate choice. The idea is that LL(1) grammars are not only
<br>easier for compilers to parse but also for users to understand.
<br>
<br>So the day you're waiting for is indeed likely to be far away :-)
<br>Paul
<br>______________________________<wbr>_________________
<br>Python-ideas mailing list
<br><a href="javascript:" target="_blank" gdf-obfuscated-mailto="_TS922c3Gt4J" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">Python...@python.org</a>
<br><a href="https://mail.python.org/mailman/listinfo/python-ideas" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fmail.python.org%2Fmailman%2Flistinfo%2Fpython-ideas\46sa\75D\46sntz\0751\46usg\75AFQjCNFj1EaNHnVmh20FnFPoUi4J-MpfQw';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fmail.python.org%2Fmailman%2Flistinfo%2Fpython-ideas\46sa\75D\46sntz\0751\46usg\75AFQjCNFj1EaNHnVmh20FnFPoUi4J-MpfQw';return true;">https://mail.python.org/<wbr>mailman/listinfo/python-ideas</a>
<br>Code of Conduct: <a href="http://python.org/psf/codeofconduct/" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fpython.org%2Fpsf%2Fcodeofconduct%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHJOrArSUDKkjrnthO6_CznMzkPsA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fpython.org%2Fpsf%2Fcodeofconduct%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHJOrArSUDKkjrnthO6_CznMzkPsA';return true;">http://python.org/psf/<wbr>codeofconduct/</a>
<br></blockquote></div></div></div>