declaration of variables?
André Jonsson
tatsujin at spamgoeshere.despammed.om
Mon Feb 17 02:50:20 EST 2003
Dennis Lee Bieber wrote:
> For the language's target environment (at least originally; Python is
> changing from a common snake into a dragon in terms of usage <G>), not
> having to declare variables is a positive feature... a library routine
> could return an error code (numeric) or error message (string) and the
> user doesn't have to know which in advance.
>
> If the goal is to detect any/all possible variable mis-uses at compile
> time, may I suggest Ada?
Thanks for the thorough reply, probably the most practical I've gotten about this.
Since my original post I have realised that it is basically, as you say, a matter of
target environment. I guess I'm just used to having the compiler to catch those
slip-ip errors. Can't say I like Ada or Pascal either but that's mostly because of
other things.
/André
More information about the Python-list
mailing list