[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Non-lexical (lexical) scoping
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 20 Mar 2018 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/