lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, 21 Sep 2010, 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.