On Sun, Oct 23, 2011 at 3:07 AM, Axel Rauschmayer <[email protected]> wrote: > > - What do you call something that produces instances in JavaScript? A > class? A type? A constructor? Or is a constructor the implementation of a > type? >
At least in my part of the everyday life of a JavaScript programmer, we call functions that we invoke with "new" mostly "classes" and sometimes "constructors". In contrast, values not objects are the ones that have types (only boolean, number and string) even if values in JS are indeed objects. > - If instance factory B inherits from instance factory A, is B a subclass > of A? B a subtype of A? B a subconstructor of A? > We say it's a subclass, but we mostly say "inherits from". Juan
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

