lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Jul 4, 2018 at 7:26 AM, Egor Skriptunoff
<egor.skriptunoff@gmail.com> wrote:
> "$" is not a part of an identifier.
> "$" is a lexem (for example, there could be a space between "$" and global
> variable name).
> "$" is absolutely the same as "_ENV." but is more comfortable to use.

Making global access explicit but light is actually a good idea IMO.

The specific use of `$` is reminiscent of Perl and PHP though. `@` is
also available and I'd expect it to be less controversial.

—Pierre-Yves