lua-users home
lua-l archive

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

Reuben Thomas <> wrote:
> The very fact that no other common scripting language does this is a
> bad sign,

Yeah, no-one uses Perl.

> but in the case of Lua there's the explicit reason that it's
> meant to work for data description (Lua equivalent of JON), things
> like:
> server = ""
> port = 25
> which break if every variable has to be declared.

Lua could perhaps switch on error-by-default mode the first time it sees a
"global" declaration.

f.anthony.n.finch  <>
Rockall, Malin, Hebrides: South 5 to 7, occasionally gale 8 at first in
Rockall and Malin, veering west or northwest 4 or 5, then backing southwest 5
or 6 later. Rough or very rough. Occasional rain. Moderate or good,
occasionally poor.