That conflict would still exist... wouldnt it?
No, actually I "miss-expressed"... When I said "prototyping" I meant
"Altering the native elements, such as String, Array, etc..."
Would that be possible to overcome as well???
Cheers
Iván
--
◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦
www.ivanicus.com
You are missing a seriously important fundamental concept of
MooTools. MooTools enhances the JavaScript language by augmenting
methods to the native objects' prototypes. Any other framework that
does the same, or has anything else conflicting in that regard will be
incompatible. (Think Prototype) On top of that, there are waaay more
functions, classes, and objects in the global namespace. It's much,
much more than just $.
There is no way to create a MooTools compatibility mode, without
completely rewriting the framework, (damn near every line of it), and
making everything use generics by default, everywhere. Prototypes
could then optionally be applied. Instead of [1,2,3].each(fn), we
would have to use Array.each([1,2,3], fn) everywhere. I repeat, it
will never, ever be possible to make a MooTools compatibility mode
with the code in 1.x.
We could rewrite the framework from scratch to do pretty much exactly
what base2.js does, (as described above) but Dean Edwards has already
done a truly fantastic job with this. If we ever get into developing
a moo2, it would probably be very, very similar to base2.js, and might
even support a 'compatibility' mode; but don't hold your breath.
Check out the MooTools source code, the base2 and jQuery source, and
do a little more research if you don't fully understand what the issue
is. Post back here if you have any more questions about why this
isn't possible with frameworks like MooTools and Prototype.
- Tom
ps: @Iván, one question mark (?) is enough!
On Mon, Oct 13, 2008 at 11:42 PM, Iván N Paz <ivannpaz@...> wrote:
1 "?" wouldn't convey my concern/intrigue on this :-P
> ps: @Iván, one question mark (?) is enough!
1 Framework to Rule Them All
;-)