[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release)
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 5 May 2009 09:10:08 +0200
On Tue, May 5, 2009 at 7:21 AM, Petite Abeille <petite_abeille@mac.com> 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.
- References:
- Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release), Mark Hamburg
- Re: Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release), steve donovan
- Re: Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release), Luiz Henrique de Figueiredo
- Re: Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release), steve donovan
- Re: Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release), Henk Boom
- Re: Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release), Philippe Lhoste
- Re: Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release), David Manura
- Re: Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release), Henk Boom
- Re: Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release), Petite Abeille