lua-users home
lua-l archive

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

> Personally, I think all expressions should return values. To me, Lua feels
> lot like scheme, except that expressions don't return values. Another
> you could do if assignments returned values is:
> x = y = z = 0

    Actually, this is a style I avoid...  Perhaps I'm inconsistent. :))
if I see x = y = 0 in a C program, I understand it, and it doesn't confuse
or frighten me.  If I was maintaining a program that contained such a
line I wouldn't bother to `fix it' to conform to my style.