[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: pack/unpack
- From: Duncan Cross <duncan.cross@...>
- Date: Wed, 15 Jun 2011 16:06:17 +0100
On Wed, Jun 15, 2011 at 3:18 PM, steve donovan
<steve.j.donovan@gmail.com> wrote:
> I've also seen {foo()...,bar()} suggested as a syntax, which is better
> IMHO because semi-colons are usually just alternative list separators.
Yes, this was my suggestion from a couple of years ago:
http://lua-users.org/lists/lua-l/2009-08/msg00242.html
As well as not breaking existing code, I also think it is a better
idea because it could be used anywhere you have a comma-separated list
of values (function call parameters, etc.), rather than only table
constructors.
-Duncan