Why we will use obj$func() often

Mark Hahn mark at prothon.org
Mon Apr 26 15:20:59 EDT 2004


"Michael Geary" <Mike at DeleteThis.Geary.com> wrote

> It's not P*thonic, but JavaScript's solution for this keeps looking better
> to me. When you want a local name, you create it with 'var'. When you
refer
> to a name, it always starts in the current scope and works its way up the
> chain until it finds the name.

Maybe there would be some way to make the "var" keyword totally optional.
But then that still destroys the "no need to look around to to read the
code" principle.





More information about the Python-list mailing list