[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: ? assignments are not expressions ?
- From: Will Leshner <will@...>
- Date: Tue, 27 Mar 2001 09:13:17 -0700
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" <email@example.com>
> Reply-To: firstname.lastname@example.org
> Date: Tue, 27 Mar 2001 18:53:02 +1000
> To: Multiple recipients of list <email@example.com>
> Subject: Re: ? assignments are not expressions ?
>> 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.