lua-users home
lua-l archive

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

> On Jul 8, 2015, at 10:40 PM, Dirk Laurie <> wrote:
> 2015-07-09 5:57 GMT+02:00 Soni L. <>:
>> On 08/07/15 11:12 PM, Luiz Henrique de Figueiredo wrote:
>>> Use
>>>        debug.setmetatable(nil, {__index = {}})
>> I should make a library for this that doesn't require debug.
> By reading these together, one can draw the conclusion that the Lua
> developers no longer feel that the debugging library is only there for
> debugging, profiling etc, and that it is now OK to use its functions
> as
> a usual programming tool provided that you exert care.
> So why are we still squeamish about it?

I confess I generally avoid it, and raise an eyebrow when people here recommend it’s use in production code. If some of the functions in the library are needed for day-to-day Lua functionality, then to my mind they don’t really belong in the debug library.