[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: ? assignments are not expressions ?
- From: "Stephen Adam" <saadam@...>
- Date: Tue, 27 Mar 2001 18:53:02 +1000
> 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.