[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Improve syntax for <close> and <const>
- From: David Favro <lua@...>
- Date: Mon, 19 Jun 2023 09:49:56 -0400
On June 19, 2023 8:58:45 AM EDT, "Lars Müller" <appgurulars@gmx.de> wrote:
>Since only local variables can have the close or const attributes,
>these
>attributes imply local and local becomes plain redundant. I would thus
>prefer completely omitting the local keyword. [...]
>const my_const = 42
>close my_file = io.open(filename)
If there's going to be a change, this is the way to go. Although added-keyword and breaking compatibility might be a drawback.
>Of course this could still be
>combined to form const close or close >const
Doesn't `close` already imply `const`?
-- David