"no variable or argument declarations are necessary."
- From: James A. Donald <jamesd@xxxxxxxxxxx>
- Date: Sun, 02 Oct 2005 13:52:21 -0700
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
.
- Follow-Ups:
- Re: "no variable or argument declarations are necessary."
- From: Magnus Lycka
- Re: "no variable or argument declarations are necessary."
- From: Istvan Albert
- Re: "no variable or argument declarations are necessary."
- From: dwelch91@xxxxxxxxx
- Re: "no variable or argument declarations are necessary."
- From: Jean-François Doyon
- Re: "no variable or argument declarations are necessary."
- From: Will McGugan
- Re: "no variable or argument declarations are necessary."
- From: D H
- Re: "no variable or argument declarations are necessary."
- Prev by Date: Re: Program help
- Next by Date: Re: Statement orders
- Previous by thread: struct.unpack
- Next by thread: Re: "no variable or argument declarations are necessary."
- Index(es):