[Python-3000] ugly pie: a "var" keyword
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Mon Oct 9 20:49:38 CEST 2006
Antoine Pitrou <solipsis at pitrou.net> writes:
> Which is a sure way to cause all kind of frigging bugs if you forget to
> put "var", because then your variable is global, which is fine when it's
> a plain int or string, not when it's a complex object whose mere
> existence changes lots of things.
When it's not specified in which scope a variable is created,
it should be an error.
"When in doubt, refuse the temptation to guess".
--
__("< Marcin Kowalczyk
\__/ qrczak at knm.org.pl
^^ http://qrnik.knm.org.pl/~qrczak/
More information about the Python-3000
mailing list