"no variable or argument declarations are necessary."
Thu Oct 6 11:10:15 CEST 2005
Brian Quinlan <brian at sweetapp.com> writes:
> I'm not trying to be silly. I am trying to get a handle on the
> semantics that you are proposing. So we now have two requirements for
> the new declaration syntax (please let me know if I'm wrong):
> o the variable must be declared
> o the variable must be assigned
These would both be errors that the compiler could and should check
for, if declaration checking is enabled. However, they would not be
> I would assume that you would make it so that assignment and
> delaration happen as part of the same statement?
Sure, why not.
> Right now, the compiler DOES NOT examine the contents of the other
> modules. All it does is generate an IMPORT_NAME instruction which is
> evaluation during runtime.
In that case the other module gets compiled when the IMPORT_NAME
instruction is executed. That says that compile time and runtime are
really the same thing in the current system.
> So are you proposing that the compiler now scan other modules during
Yeah, maybe some optimization is possible.
More information about the Python-list