Andrew Barnert via Python-ideas wrote:
On Nov 6, 2019, at 08:59, Chris Angelico <ros...@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
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/SK2UXJ4VLHWCVJN54Q4ZN37BO3ER33B6/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to