[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Proposal] Extend no-parenthesis notation to variables
- From: Andrew Gierth <andrew@...>
- Date: Sun, 20 Oct 2019 17:59:03 +0100
>>>>> "Mattia" == Mattia Maldini <mattia512maldini@gmail.com> writes:
Mattia> Hello everyone,
Mattia> I am writing here to possibly push a suggestion. For function
Mattia> calls with a single argument Lua allows to omit the parenthesis
Mattia> if the argument is a string. Would it be possible to extend
Mattia> this notation to variables as well?
The biggest problem with this idea is parsing ambiguity with regard to
the start of the next statement. A statement can't start with a string
literal or a table constructor, but it can start with a variable.
--
Andrew.