[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Quest: real world "Lua array with holes" usage
- From: Dirk Laurie <dirk.laurie@...>
- Date: Thu, 28 Jul 2016 11:50:36 +0200
2016-07-28 10:54 GMT+02:00 Thomas Jericke <tjericke@indel.ch>:
> There you go. Not that I like it, but not really an issue.
Exactly. People who write obscene code don't deserve legal protection.
If your table literal contains expressions with non-orthogonal side effects,
your program deserves to crash. It's at the level of "don't touch the prongs
with your finger while inserting the plug into the wall socket". Why must
a manual state that explicitly?
> Also when I use the debugger, so far I have only seen Lua to evaluate
> table constructors in order,
Or use luac.
> so a solution would be to just grantee the most obvious behavior.
Not an option.
Someday we may see ParaLua, an implementation of Lua that can
exploit a parallel computer or a cluster. In that case such a guarantee
would force a bottleneck.
- References:
- Quest: real world "Lua array with holes" usage, Rodrigo Azevedo
- Re: Quest: real world "Lua array with holes" usage, Roberto Ierusalimschy
- Re: Quest: real world "Lua array with holes" usage, Jorge
- Re: Quest: real world "Lua array with holes" usage, Hisham
- Re: Quest: real world "Lua array with holes" usage, Roberto Ierusalimschy
- Re: Quest: real world "Lua array with holes" usage, Tim Hill
- Re: Quest: real world "Lua array with holes" usage, Hisham
- Re: Quest: real world "Lua array with holes" usage, Thomas Jericke
- Re: Quest: real world "Lua array with holes" usage, Tim Hill
- Re: Quest: real world "Lua array with holes" usage, Thomas Jericke