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
a
> lot like scheme, except that expressions don't return values. Another
thing
> you could do if assignments returned values is:
>
> x = y = z = 0

    Actually, this is a style I avoid...  Perhaps I'm inconsistent. :))
But,
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.