lua-users home
lua-l archive

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


>>>>> "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.