[Python-ideas] Spelling of Assignment Expressions PEP 572 (was post #4)
Guido van Rossum
guido at python.org
Sun Apr 15 13:19:57 EDT 2018
On Sun, Apr 15, 2018 at 4:05 AM, Kirill Balunov <kirillbalunov at gmail.com>
wrote:
> [...] For me personally, `: =` looks and feels just like normal assignment
> statement which can be used interchangeable but in many more places in the
> code. And if the main goal of the PEP was to offer this `assignment
> expression` as a future replacement for `assignment statement` the `:=`
> syntax form would be the very reasonable proposal (of course in this case
> there will be a lot more other questions).
>
I haven't kept up with what's in the PEP (or much of this thread), but this
is the key reason I strongly prefer := as inline assignment operator.
> But somehow this PEP does not mean it! And with the current rationale of
> this PEP it's a huge CON for me that `=` and `:=` feel and look the same.
>
Then maybe the PEP needs to be updated.
--
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180415/b5a1ca93/attachment.html>
More information about the Python-ideas
mailing list