6 Nov
2019
6 Nov
'19
9:46 p.m.
Andrew Barnert via Python-ideas wrote:
On Nov 6, 2019, at 08:59, Chris Angelico <rosuav@gmail.com> wrote:
No, because "x <-- y" is already legal syntax
You could handle that by making the grammar more complicated.
Or just have the tokeniser treat "<--" as a single token, the same way that it treats "<=" as a single token rather than "<" followed by "=". It would be a backwards-incompatible change (if you really wanted "less than minus minus something" you'd have to put a space in somewhere) but replacing the assignment operator is already a much bigger one. -- Greg