On 3-Jan-06, at 4:40 PM, Michael Peters wrote:
Michael Peters wrote:
Martin Marinschek wrote:
Ok,
if you guys agree, then I would really think that we should try
to get
this into prototype. Why should each and every user necessarily do
this if it could fixed by the framework itself?
I wasn't saying that the frameword should do it. I was just
complaining about
the lack of namespaces in Javascript. I think that adding a
'protoType_'
extension to every method call and class name would be tedious and
ugly (and
would give me PHP nightmares).
Maybe something like Ajile? http://en.wikipedia.org/wiki/AJILE
Something else that's worth looking at is JSAN
(http://openjsan.org/doc/c/cw/cwest/JSAN/0.10/lib/JSAN.html) which
is part of
the OpenJSAN project to create something similar to Perl's CPAN for
Javascript.
This library tries also give namespaces and library path look
functionality to
Javascript similar to most other major languages. Not sure how big
of a change
it would be for Prototype.
But from other posts I don't think it's a problem that can be
solved without
making changes to Prototype.
The JSAN project seems to have died, unfortunately. It actually
already contains most of Prototype, though it's based on an older
version. But it wouldn't solve the problem since it does exactly the
same thing as Prototype does: extends standard objects and adds lots
of stuff to the global namespace.
L.
--
Laurie Harper
Open Source advocate, Java geek: http://www.holoweb.net/laurie
Founder, Zotech Software: http://www.zotechsoftware.com/
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs