[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: help with lua style and syntax
- From: Egor Skriptunoff <egor.skriptunoff@...>
- Date: Tue, 23 Oct 2012 17:44:22 +0300
On Tue, 23 Oct 2012 11:00 +0100 (BST), David Collier <myshkin@cix.co.uk> wrote:
> Essentially I have come to like the ability of a C assignment to be used
> as a value - and if Lua could handle it, including multiple-value
> assignments - which are a great feature of Lua, some of my code would
> look a lot neater :-)
Unfortunately, assignments in Lua are not expressions.
This is a choice of Lua's authors.
Probably, this choice has been made for the sake of better error detection
at the expense of language flexibility. :-(