Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Features of rc and es to zsh



Zefram wrote:

> ...
> 
> >Lexically scoped variables     N    N    Y
> 
> This could be done only in a very limited form.  The concepts that give
> lexical scoping are quite alien to Bourne-style shells, and, while some
> of them could be added, without a concept of function objects the utility
> of lexical scoping would be minimal.
> 
> I think the most minimal version of lexical variables -- declared
> variables that become invisible to called functions -- would be useful in
> itself, and reasonably feasible to implement.  Closures (and the nested
> scopes they imply) would be too big a change.

Of course that would be interesting and we already discussed it. And I 
think one day we will have it... maybe we should have added it when we 
started with the new completion system, where it would be very useful
and would have prevented some bugs. Oh well.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author