logo       

Re: ugly pie: a "var" keyword: msg#00046

python.python-3000.devel

Subject: Re: ugly pie: a "var" keyword

Antoine Pitrou <solipsis@xxxxxxxxxx> 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@xxxxxxxxxx
^^ http://qrnik.knm.org.pl/~qrczak/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise