[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: upvals in Lua bytecode
- From: Reuben Thomas <rrt@...>
- Date: Thu, 2 Jun 2011 09:07:24 +0100
On 2 June 2011 08:49, Miles Bader <email@example.com> wrote:
> On Thu, Jun 2, 2011 at 7:37 AM, Reuben Thomas <firstname.lastname@example.org> wrote:
>> Seriously, horses for courses, and "error by default" would not fit with Lua.
> Sure it would. Maybe you (etc) have a different opinion, but I think
> I've done enough Lua programming to have a pretty good feel for what
The very fact that no other common scripting language does this is a
bad sign, 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
server = "foo.bar.com"
port = 25
which break if every variable has to be declared.