lua-users home
lua-l archive

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

On 10/08/2011, at 12:14 PM, Steve Litt wrote:

> Can anyone explain the benefit of:
> a, b = 1, 2

Some people might think it looks nicer than the alternative in some cases.

It might be that even more people think that

x, y = y, x

looks nicer than

local temp = x
x = y
y = temp

LuaJIT generates the same code for both.