[Python-Dev] PEP 572: Assignment Expressions (original) (raw)
Ethan Furman ethan at stoneleaf.us
Fri Apr 20 11:35:03 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 08:07 AM, Chris Barker - NOAA Federal wrote:
On 04/20/2018 04:25 AM, Christoph Groth wrote:
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.
Unless it's a bug magnet, that doesn't strike me as a good reason NOT to do this.
--
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 ]