lua-users home
lua-l archive

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


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
> 
> ...and then perhaps ?1, ?2, etc for multiple assignments.

Though I don't see this getting in to the core just yet, I must say this is a
fascinating approach to the problem!

 - Peter