Am 31.05.2007 um 02:09 schrieb RobG:
> While using an Array like a plain Object is considered bad coding > style in general, there is nothing wrong with it in terms of syntax - > it doesn't break any part of the ECMAScript specification - and there > are situations where it can be considered the right thing to do. No, there is not. You're iterating over the properties of the object, not the items of the array. It's not the syntax that's broken, it's just plain and clearly wrongly used. Anyway, removing the automatic extension of all arrays will certainly break Prototype from functioning correctly, as it uses arrays internally too, and expects them to be extended. The big thing is: If you have legacy JavaScript code: now it's a good time to rewrite it, with concise and readable Prototypish syntax and unit tests to boot. :) Best, 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 -~----------~----~----~----~------~----~------~--~---
