Is JavaScript 's "new" Keyword Considered Harmful?
- by Pablo Fernandez
In another question, a user pointed out that the new keyword was dangerous to use and proposed a solution to object creation that did not use new... I didn't believe that was true, mostly because I've used Prototype, Scriptaculous and other excellent JavaScript libraries, and everyone of them used the new keyword...
In spite of that, yesterday I was watching Douglas Crockford's talk at YUI theater and he said the exactly same thing, that he didn't use the new keyword anymore in his code.
Is it 'bad' to use the new keyword? what are the advantages and disadvantages of using it?