[whatwg] Questions regarding Path object
lists at scratchdisk.com
Wed Nov 6 03:41:50 PST 2013
On Nov 4, 2013, at 13:32 , Anne van Kesteren <annevk at annevk.nl> wrote:
> Objects not having constructors is a bad API practice we are moving away from.
I'm not sure everybody thinks so. There are whole libraries out there that avoid the use of 'new' in favor of functions that create the objects for you (e.g. Two.js, Raphael.js, etc). Douglas Crockford amongst others is advocating against the use of 'new' for a long time.
We're used to calling document.createElement(), etc. To me it feels strange that all of a sudden, browser provided functionality is not bound to a context, but is implemented by such a free-floating constructor.
More information about the whatwg