Am 01.12.2006 um 21:32 schrieb Karl Guertin:
> Brendan Eich and the ECMA working group are once again active, so > we'll start seeing changes to JavaScript. Array is ripe for > improvement, so what happens if the language gets a builtin with the > same name as a current prototype extension and a different signature? > Will prototype change signature to match and break all the working > prototype code? I expect not, I'd anticipate a wrapper function that > would preserve signature. Now how does the rest of the javascript > world deal with that? They obviously won't be dealing with prototype > legacy code so they can use the builtin just fine, but what happens > when someone wants to use the scriptaculous autocompleter and pulls in > prototype? What if you don't fully control the final page environment? > > I'll admit that the above scenario probably won't happen because I'd > expect the standards guys to be aware of prototype, but it could > happen and the possibility is enough for me to delcare prototype > hacking on objects you don't own to be evil. There are workarounds > like Dean Edwards' iframe trick, so it should be possible to hack > around situations like the above if you're aware of the problem, but > it wouldn't ever be a problem in the first place if prototype hacking > didn't happen. What are you talking about? We're not writing Prototype for some version of JavaScript that might or might not arrive years from now. If they really dare to break backwards compatibility, well, the worst thing that can happen is that we have to release a new version. I'm pretty sure browsers will still have release candidates and beta versions in the future, so there should be plenty of time to do so. I'd trade in having.to.write.long.lines() for concise code every day. -Thomas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
