[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: modules, require, magic
- From: Sean Conner <sean@...>
- Date: Tue, 18 Oct 2011 04:12:18 -0400
It was thus said that the Great steve donovan once stated:
> On Tue, Oct 18, 2011 at 9:33 AM, Josh Simmons <simmons.44@gmail.com> wrote:
> > Interestingly enough this is actually worse if you use module and they
> > both name themselves 'dns' in which case the value of the global just
> > depends on who got in last.
>
> This is true, but it's more a social problem. Sean's solution seems a
> little extreme but at least he takes namespacing seriously! And we
> can always just ignore the global ;)
>
> Personally, I'd declare myself as agnostic on the module() question.
> It's dangers have been oversold, but personally I use the no-magic
> style in public projects because then the code can integrate with any
> other style, including sandboxed code.
A question: Two modules use Penlight, foo and bar. If I include foo and
bar into a project, does that mean I have two instances of Penlight loaded?
-spc
- References:
- modules, require, magic, Eduardo Ochs
- Re: modules, require, magic, Javier Guerra Giraldez
- Re: modules, require, magic, Petite Abeille
- Re: modules, require, magic, Sam Roberts
- Re: modules, require, magic, David Manura
- Re: modules, require, magic, Mark Hamburg
- Re: modules, require, magic, Sean Conner
- Re: modules, require, magic, Josh Simmons
- Re: modules, require, magic, Josh Simmons
- Re: modules, require, magic, steve donovan