|
On Dec 27, 2019, at 2:20 PM, Sven Olsen <sven2718@gmail.com> wrote:
That seems like the “correct Lua” way to do it, since that’s how it works with with a normal =. Which isn’t to say I like it--I agree that opens the door to some very confusing code. On the other hand, having a,b,c += 1 increment all three also conflicts with Lua’s = operator: a,b,c = 1 print(a,b,c) -- outputs 1, nil, nil I’ll dodge the question and throw a parse error if it’s compound-assigning to a list. I still need to add that to the patch.. Many thanks for your feedback, and thank you for that patch in the first place! Every time I have to use Lua without it I lose a bit more hair (and I don’t have much left). :) -Dave |