Loader vs ES6 Classes

Jason Orendorff jason.orendorff at gmail.com
Mon Aug 4 12:31:19 PDT 2014


On Sun, Aug 3, 2014 at 2:31 PM, Kevin Smith <zenparsing at gmail.com> wrote:
> I've often wondered why we aren't using inheritance to customize Loaders.
> I'd be interested in the rationale.

When I was working on Loaders, I modified the design so that inheritance works.

That is, you can just subclass Loader and declare the methods you want
to override, and the Loader will call those methods. It all works, as
far as I can tell.

I don't remember why we kept the options argument after that. I'm in
favor of dropping it.

-j


More information about the es-discuss mailing list