
14 Nov
2019
14 Nov
'19
4:42 p.m.
On 15/11/19 5:54 am, Paul Moore wrote:
On Thu, 14 Nov 2019 at 16:42, Random832 random832@fastmail.com wrote:
So, uh... what if we didn't need backslashes for statements that begin with a keyword and end with a colon?
Not sure about ambiguity, but it would require a much more powerful parser than Python currently has
I'm not convinced of that. The parser already handles ignoring newlines inside parenthesised expressions. Maybe the technique used for that could be adapted to ignore newlines between a statement-opening keyword and its matching colon?
In any case, I really doubt that arbitrary lookahead is required to do this.
--
Greg