News for hackers. Stuff that matters.
Re:New-less JavaScript (2013) by bttmly on Thursday March 12, 2015 @02:19AM (#9189408)
Yes, absolutely. In fact, this post is really just providing a trick for not having to always write `new`. Using closures for object construction is the real 'new-less' JavaScript. As a nice parallel, the trick explained in the post lets you construct objects using `new` without typing it, whereas object factories that use closures allow you to use `new` without requiring it.

There are no comments on this comment yet.