lua-users home
lua-l archive

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


On Fri, Feb 11, 2011 at 11:28:14AM -0500, Steve Litt wrote:
> On Friday 11 February 2011 01:59:09 Jon Akhtar wrote:
> > On Thu, Feb 10, 2011 at 10:56 PM, Xavier Wang <weasley.wx@gmail.com> wrote:
> > > What will happen if we add a = b = c support in lua?
> > 
> > It would make it easier to write and harder to read.
> > 
> > a,b,c = d,e, = f
> 
> You know, a,b = c,d is so hard for me to understand/contemplate, that in Lua I 
> just do my assigns one at a time, which isn't a huge inconvenience.

Yeah, but you would also lose multiple values returns from functions.

  OG.