Re: "no variable or argument declarations are necessary."
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: "no variable or argument declarations are necessary."

From: Paul Rubin <//phr.cx@NOSPAM.invalid>
Date: Thu Oct 06 2005 - 11:10:15 CEST

Brian Quinlan <brian@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
syntax errors.

> 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
> compilation?

Yeah, maybe some optimization is possible.
Received on Sat Oct 15 04:12:46 2005