The "new" statement isn't going anywhere - shims of Object.create() will continue to use it in older browsers. Regarding this thread's original issue, it's best to code constructors that do no more than define themselves.
When functions can do anything it behooves us to have some guidelines for writing them. I recommend folks consider my initial comment, about designing functions based on their purpose. As well, there is Scott's complimentary suggestion that initialization actions be migrated to methods (e.g., "object.init()"). The best future-proofing is to develop well designed code. -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
