lua-users home
lua-l archive

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


On Tue, 18 May 2010 15:03:05 -0700, Duncan Cross <duncan.cross@gmail.com> wrote:

Following on from what Roberto said a few weeks ago about a change in
attitude towards using the "debug" module in real code [1], I'd like
to request it be renamed to something like "internal" or "lowlevel" or
"luacore" to reflect that. require("debug") should probably still
work, but it would just be an alias kept around for back
compatibility. The idea is that when new code uses this name, that
would be a clear message that this is code intended for Lua 5.2 and
above, where the library-previously-known-as-"debug" is now considered
generally acceptable to use, not only in the context of debugging.

I know this might seem like a petty, bike-shed-colour kind of a thing
to try to get changed - but I do think that this is a significant
paradigm shift, one that is worth intentionally making clear and
obvious to people.

[1] http://lua-users.org/lists/lua-l/2010-05/msg00078.html

-Duncan


I'd rather have pure "debug" functions (like stack tracing) split from functions like setupvalue, which would be moved to the "internals" library.