[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: new "empty" value/type in Lua?
- From: Dirk Laurie <dirk.laurie@...>
- Date: Mon, 1 Jul 2013 10:40:21 +0200
2013/7/1 Tim Hill <firstname.lastname@example.org>:
> My feeling was that simply adding a standard way to do this avoided both of
> these work-arounds.
Inspired by all this, I wrote a module called 'empty'.
$ lua -l empty
Lua 5.2.2 Copyright (C) 1994-2013 Lua.org, PUC-Rio
I'm not telling anybody how it works. Maybe it invokes a totally different
interpreter that fakes the official appearance. Maybe it's pure Lua.
Maybe it's a C module.
What, apart from the fact that you need to require it, makes it fall
short of what is desired? Only the fact that the official Lua does
not have it and does not document it?