[Python-Dev] Reserve ':=' for type-inferred variable initialization (was PEP 572)
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Apr 27 03:38:33 EDT 2018
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
More information about the Python-Dev
mailing list