Loader vs ES6 Classes

Jason Orendorff jason.orendorff at gmail.com
Mon Aug 4 13:50:11 PDT 2014

On Mon, Aug 4, 2014 at 3:23 PM, John Barton <johnjbarton at google.com> wrote:
> IMO a better design would have each platform subclass Loader, eg
> SystemLoader extends Loader and System (or 'system' if we decide to suddenly
> come to our senses) would be an instance of SystemLoader. SystemLoader would
> define the hook functions and custom Loader classes would extend
> SystemLoader to add features.  Custom loaders probably don't want to
> re-implement the hooks so much as augment them. The SystemLoader would
> support this naturally.

I agree with the broad strokes here.

The design as it stands doesn't specify the system loader or its
class. It's a platform-specific detail.


More information about the es-discuss mailing list