lua-users home
lua-l archive

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

On 4/11/07, Andy Stark <> wrote:
An alternative to assignment operators (+=, etc) might be to have a
shorthand for referring to the variables on the left hand side of the
assignment. Perhaps one of the unused characters (question mark, say)
could be used for this. So if we started with:-

   longVarName = longVarName + 1

...we could change it to:-

   longVarName = ? + 1

...which immediately makes me think of  Perl's $_ (the "it" variable),
and I don't think any of us want to go down that road, do we? ;)

-- Hisham