Re: Non-lexical (lexical) scoping
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Non-lexical (lexical) scoping
- From: Dirk Laurie <dirk.laurie@...>
- Date: 2018年3月20日 06:57:50 +0200
2018年03月20日 0:38 GMT+02:00 Soni "They/Them" L. <fakedme@gmail.com>:
>
> Let's talk about non-lexical lexical scopings. That is, the ability to undefine variables.
,,,
> forget a
...
> local a, a, a = 1, 2, 3
This assumes something about implementation of multiple assignment
that Lua does not promise.
...
> I think this sounds neat. What do you think?
`forget a` looks evocative [1]. But `pop(a)` is the more usual word
for this sort of thing.
[1] https://xkcd.com/379/