Re: lexical scoping (was: JPush)

Leon Bottou <[email protected]>
Newsgroups gmane.lisp.lush.devel
Message-ID <[email protected]>
On Wednesday 02 November 2005 08:26 pm, Ralf Juengling wrote:
> 
> On Wed, 2 Nov 2005, Yann LeCun wrote:
> 
> > - lexical scoping (it's better for compiling)
> 
> What are your ideas for an evolutionary approach towards
> lexical scoping? What are the problems with adding lexical
> scoping to the language?

The first step was to introduce defvar/defparameter 
and make it mandatory for global variables.
Then wait a long time until all lush code
gets to comply with this new policy.

Then we can decide
- variables declared with defvar/defparameter are dynamically scoped.
- all other variables are lexically scoped.
This is still a big implementation change!

At this point most of the existing code should still work
except some code that uses dynamical scoping to access slots of objects. 
That includes the ogre library, although some work
has already been done to restrict this kind of things...

I started the first step because it seems reasonable.
I am afraid that the second step might become very 
painful if anything has been overlooked.  

- L.



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.