No subject


Mon Sep 7 16:40:22 PDT 2009


package/namespace names at runtime.
Are packages reified as javascript objects?  Is it also a hierarchical
addressing scheme?
Is this something that would be helped or hindered by the namespace functio=
n?

> And should there be any further interest, you can see a bit of what I hav=
e
> built upon this system:
> http://support.livesite.net/products/es/
>
> Cheers,
> -Ryan
>
> On 12/02/2009 01:36 AM, Michael Haufe wrote:
>
> On Tue, Dec 1, 2009 at 10:59 PM, Mark A. Ziesemer <online at mark.ziesemer.c=
om>
> wrote:
>> I'm sorry - I may very well be missing something, but I don't see how
>> this is at all related (?). =C2=A0What I'm proposing would be somewhat
>> related to the YAHOO.namespace function
>> (http://developer.yahoo.com/yui/docs/YAHOO.html), though without being
>> limited to children of the "YAHOO" global object. =C2=A0Actually, the YA=
HOO
>> version and others would be able to utilize the version I'm proposing
>> within their versions.
>
> If the point is to prevent pollution of global code, the proposed module
> system solves that more securely since it can prevents 3rd party code fro=
m
> doing anything nasty. There is also a related package system they are
> discussing:
> http://wiki.commonjs.org/wiki/Packages
>
> I've been burned in the past by bad libraries using this idea, so I'm wea=
ry
> of it admittedly.
> Peter Michaux wrote an excellent article on the subject here:
> http://peter.michaux.ca/articles/javascript-namespacing
> Though I don't agree with his solution of using an underscore naming
> convention, I believe he does justice in defining the problem.
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>


More information about the es-discuss mailing list