[Python-Dev] Reserve ':=' for type-inferred variable initialization (was PEP 572) (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 27 03:38:33 EDT 2018
- Previous message (by thread): [Python-Dev] Reserve ':=' for type-inferred variable initialization (was PEP 572)
- Next message (by thread): [Python-Dev] Boundaries between numbers and identifiers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Fatty Morgan wrote:
Distinguishing in a rather unobtrusive way (no 'var' or 'let') the initialization of a previously unbound variable 'name := expr' and the re-assignment of a previously bound variable 'name = expr'
That would be a massively confusing change. It's a fine idea for a new language, but I can't see a smooth way to get there from existing Python.
-- Greg
- Previous message (by thread): [Python-Dev] Reserve ':=' for type-inferred variable initialization (was PEP 572)
- Next message (by thread): [Python-Dev] Boundaries between numbers and identifiers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]