lua-users home
lua-l archive

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


Actually, I never use it either :) I just pointed it out because I often do
see it and perhaps there might be people who like that style.

> From: "Stephen Adam" <saadam@bigpond.com>
> Reply-To: lua-l@tecgraf.puc-rio.br
> Date: Tue, 27 Mar 2001 18:53:02 +1000
> To: Multiple recipients of list <lua-l@tecgraf.puc-rio.br>
> Subject: Re: ? assignments are not expressions ?
> 
>> 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.
> 
> 
>