Re: modules, require, magic
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: modules, require, magic
- From: Matthew Wild <mwild1@...>
- Date: 2011年10月17日 00:42:59 +0100
On 17 October 2011 00:36, Petite Abeille <petite.abeille@gmail.com> wrote:
>
> On Oct 16, 2011, at 11:39 PM, Eduardo Ochs wrote:
>
>> They contain too much magic
>
> <interlude>
>
> Hmmm... regarding that "magic" argument... this sounds like hogwash to me... who understands the intimate details of Lua implementation? Of how LuaJIT does its very own magic? Of how a relational database is implemented? Of how a phone work? I, for one, don't.
>
The implementation isn't a problem, it's where the implementation
interfaces with the user that counts. module() has too many hidden
caveats that are waiting to trip up users:
http://lua-users.org/wiki/LuaModuleFunctionCritiqued
Regards,
Matthew