lua-users home
lua-l archive

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

On Tue, May 5, 2009 at 7:21 AM, Petite Abeille <> wrote:
>>> --> Don't use the "module" function.
>> Amen.
> Nonsense :)

I'm not persuaded yet about the dangers, although I'm now aware of the
issue. It depends whether you've got 150K of Lua coming from lots of
different developers  Those of us under 10K should not worry too much

My favourite C++ one-liner comes from Scott Meyers in comp.lang.c++.moderated:

    using namespace std; // so sue me

But, seriously, the point about everybody putting stuff into standard
tables willy-nilly is valid.

The proposal for 'blessed' extensions is fine.  For instance, there is
no os.sleep(), but on most platforms there is a sensible
implementation. However, the argument should be standard
(milliseconds or fractional seconds?)

In a similar vein, if you wish to add a trim function to string, then
its name should be trim and takes one string argument.

steve d.