[Python-Dev] PEP 572: Assignment Expressions
Ethan Furman
ethan at stoneleaf.us
Fri Apr 20 14:22:21 EDT 2018
More information about the Python-Dev mailing list
Fri Apr 20 14:22:21 EDT 2018
- Previous message (by thread): [Python-Dev] PEP 572: Assignment Expressions
- Next message (by thread): [Python-Dev] PEP 572: Assignment Expressions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 04/20/2018 11:15 AM, Christoph Groth wrote: > Nick Coghlan wrote: > >> I also think that if "=" and ":=" both target the same kind of scope, >> there isn't enough new expressiveness introduced by the latter to >> justify the syntactic complexity of adding it. > > OK, but then how about introducing assignment expressions with the "=" > operator but *requiring* extra parens (similar to how modern C compilers > warn about assignment expressions without parens), e.g. Using a single "=" for assignment expressions isn't going to happen. Period. -- ~Ethan~
- Previous message (by thread): [Python-Dev] PEP 572: Assignment Expressions
- Next message (by thread): [Python-Dev] PEP 572: Assignment Expressions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list