[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: ? assignments are not expressions ?
- From: Will Leshner <will@...>
- Date: Tue, 27 Mar 2001 09:12:05 -0700
Then assignment should be an expression. And why can't I do something like
x = while y < 10 do y = y + 1 end
I imagine that might really by a maintenance nightmare, but it wouldn't have
to be used by somebody worried about such things.
> From: "Michael T. Richter" <firstname.lastname@example.org>
> Organization: Half-Baked Software
> Reply-To: email@example.com
> Date: Tue, 27 Mar 2001 02:13:36 -0500
> To: Multiple recipients of list <firstname.lastname@example.org>
> Subject: Re: ? assignments are not expressions ?
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>> Personally, I think all expressions should return values. To me, Lua
>> feels a lot like scheme, except that expressions don't return values.
> All expressions in Lua *DO* return values. Assignment isn't an expression.
> It's a statement. :-)
> - --
> Michael T. Richter
> "Be seeing you."
> -----BEGIN PGP SIGNATURE-----
> Version: PGP Personal Privacy 6.5.3
> -----END PGP SIGNATURE-----