lua-users home
lua-l archive

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


2014-05-01 17:21 GMT+02:00 Thomas Jericke <tjericke@indel.ch>:

> print(lower"text":lower())
>
> would you pefer an error (like now) or left to right order assuming that
>
> print("text":lower())
>
> is valid syntax.

I prefer the error. It's the same error that you get if you write
> print(beer"text":lower())
There is no error if `lower` is defined.
> local lower=string.lower; print(lower"text":lower())

How do you intend making "text":lower() valid syntax?
The present demand for parentheses comes from:

   prefixexp ::= var | functioncall | ‘(’ exp ‘)’

Changing `prefixexp` may have other repercussions.