[[Class]] begone in ES6.
Also you are making an ambiguous API. If we add class syntax and someone
writes class string {}, which "string" is string?
The "class" trope should not be mixed with "type", IMHO.
/be
Axel Rauschmayer <mailto:a...@rauschma.de>
January 27, 2012 4:27 AM
I would still love to get read access to the [[Class]] property in
ES.next.
Proposal: A function getTypeName().
- Primitives p: return typeof p (except: "null" for null)
- Objects o (including functions): return o.[[Class]]
Axel
--
Dr. Axel Rauschmayer
a...@rauschma.de <mailto:a...@rauschma.de>
home: rauschma.de <http://rauschma.de>
twitter: twitter.com/rauschma <http://twitter.com/rauschma>
blog: 2ality.com <http://2ality.com>
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss