"no variable or argument declarations are necessary."
I am contemplating getting into Python, which is used by engineers I admire - google and Bram Cohen, but was horrified to read "no variable or argument declarations are necessary." Surely that means that if I misspell a variable name, my program will mysteriously fail to work with no error message. If you don't declare variables, you can inadvertently re-use an variable used in an enclosing context when you don't intend to, or inadvertently reference a new variable (a typo) when you intended to reference an existing variable. What can one do to swiftly detect this type of bug? -- http://www.jim.com -- http://mail.python.org/mailman/listinfo/python-list
Re: "no variable or argument declarations are necessary."
James A. Donald: > > Surely that means that if I misspell a variable name, my program will > > mysteriously fail to work with no error message. On Sun, 02 Oct 2005 17:11:13 -0400, Jean-François Doyon > No, the error message will be pretty clear actually :) Now why, I wonder, does this loop never end :-) egold = 0 while egold < 10: ego1d = egold+1 -- http://www.jim.com -- http://mail.python.org/mailman/listinfo/python-list