leafo/moonscript — Issue #31: Multiple assignment of same value
Author: ckknight
Created: 2012-02-19 08:21:39+00:00
State: open

The following is possible in lua, but causes a parse error in MoonScript. It could be handy, as I use the pattern in lua frequently.

a = b = c

Which sets both `a` and `b` to `c`.

For an actual use case,

someTable.name = localValue = somethingElse

Which, ideally would turn into

local localValue
someTable.name = localValue = somethingElse

or something along those lines.