PEP 572: Delete objection about ugly code (#717)
See https://twitter.com/asmeurer/status/1016522016160022528
This commit is contained in:
parent
d18a264e4b
commit
44ee870453
|
@ -815,13 +815,6 @@ between ``if (x == y)`` and ``if (x = y)`` belies their drastically different
|
|||
semantics. Thus this proposal uses ``:=`` to clarify the distinction.
|
||||
|
||||
|
||||
This could be used to create ugly code!
|
||||
---------------------------------------
|
||||
|
||||
So can anything else. This is a tool, and it is up to the programmer to use it
|
||||
where it makes sense, and not use it where superior constructs can be used.
|
||||
|
||||
|
||||
With assignment expressions, why bother with assignment statements?
|
||||
-------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue