lua-users home
lua-l archive

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


On Dec 14, 2010, at 12:37 AM, Tony Finch wrote:

> On 14 Dec 2010, at 08:34, Dirk Laurie <dpl@sun.ac.za> wrote:
>> On Tue, Dec 14, 2010 at 07:40:05AM +0200, Mark Hamburg wrote:
>>> 
>>> Here is another potential solution to the "holes" problem:
>>> 
>>> 1. Define a new value type HOLE or NIL or NULL or whatever. 
>> 
>> Sorry, I stop reading the post right here.  A language that
>> has only 8 value types can't afford to add a type simply to
>> address a minor inconvenience.
> 
> My reaction is to ask why Mark would want to reinvent JavaScript.

I thought about citing JavaScript as an antecedent but decided it wouldn't lend any useful weight here. ;-)

Another way to think about this is that LUA_THOLE joins LUA_TDEADKEY as part of the table implementation though in this case it serves to support "nil-preserving tables".

Mark