On 2018年04月17日 22:44, Greg Ewing wrote:
Some languages use '=' for assignment, others for equality, but do you know of a language that uses ':=' for equality' or '==' for assignment? If Python saw '=' it could ask "Do you mean assignment ':=' or equality '=='?".Paul Moore wrote:the next question will likely be "so why does = exist at all?"And if we decide to make ':=' the official assigment operator and deprectate '=', the next question will be "Why do we have '==' instead of '='?"
_______________________________________________ Python-Dev mailing list [email protected] https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com