Sorry for bringing this up again, but I’m still having trouble with naming 
things properly in JavaScript.

- 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?

- Are Date and RegExp built-in types? What do you call the value of the global 
variable Date? Is new Date() an instance of a type or an instance of a 
constructor?

- What about primitives?Are there primitive types and object types? Is the 
union of the two called just “types”?

- 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?

- Does a class literal (if it makes it into ES.next) define a class? Is a class 
the implementation of a type?


Intuitively, it is clear how things work, but I find it difficult to be precise 
when talking/writing about them.

-- 
Dr. Axel Rauschmayer
[email protected]

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com



_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to