Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Features of rc and es to zsh
- X-seq: zsh-users 3313
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: Features of rc and es to zsh
- Date: Fri, 21 Jul 2000 09:33:57 +0200 (MET DST)
- In-reply-to: Zefram's message of Thu, 20 Jul 2000 23:32:41 +0100 (BST)
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
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