[Python-Dev] PEP 572: Assignment Expressions (original) (raw)
Chris Barker - NOAA Federal chris.barker at noaa.gov
Fri Apr 20 11:07:22 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 ]
Personally, I even slightly prefer
a := 3 to the commonplace a = 3 because it visually expresses the asymmetry of the operation.
Careful here! That’s a fine argument for using := in a new language, but people using := when they don’t need an expression because they like the symbol better is a reason NOT to do this.
And yes, normally aspirated Pascal WAS my first programming language. :-)
-CHB
- 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 ]