Re: Some enhancements in table initializations
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Some enhancements in table initializations
- From: Tony Finch <dot@...>
- Date: 2010年9月21日 13:01:30 +0100
On 2010年9月21日, David Manura wrote:
>
> And personally, I've wanted something like Proposition 1. Lisp and
> CMake languages allow this simpler syntax. The major problem it poses
> in Lua is that Lua expressions without a commas between them can too
> easily run together. {a "" {}} is valid in Lua 5.1, for example. The
> problem also occurs with statements without semicolons between them
> ("ambiguous syntax" error) but with a much lower frequency.
It's probably worth noting that statements can only start with a keyword,
a variable name, or a (, which is why unseparated statements are much less
of a problem than unseparated expressions.
Tony.
--
f.anthony.n.finch <dot@dotat.at> http://dotat.at/
HUMBER THAMES DOVER WIGHT PORTLAND: NORTH BACKING WEST OR NORTHWEST, 5 TO 7,
DECREASING 4 OR 5, OCCASIONALLY 6 LATER IN HUMBER AND THAMES. MODERATE OR
ROUGH. RAIN THEN FAIR. GOOD.