22 points · by Ben65 · 18y ago · 8 comments
Never, ever add things to Object.prototype. It breaks enumeration over objects using the for...in operator, which in turn breaks lots of other libraries you might want to use later. Sure, this is due to a bug in the core JavaScript spec but it's one we all have to live with.
There are many compelling reasons to stop using such a badly-implemented and rather-demented language; but unfortunately there are no compelling alternatives.
http://code.google.com/webtoolkit/
The future is here, man.
If there are no alternatives, then those reasons start to look a lot less compelling.