Capitalization: symbol vs. Symbol

Axel Rauschmayer axel at rauschma.de
Fri Jan 17 09:14:39 PST 2014


Ah, right. Given that `Boolean()` produces booleans (etc.), it does indeed fit in nicely.

On Jan 17, 2014, at 18:09 , Brendan Eich <brendan at mozilla.com> wrote:

> Symbols are not value objects, they are primitives like strings, and the 'Symbol' function is analogous to 'String'. See
> 
> http://esdiscuss.org/notes/2013-09-18
> 
> 
>       Consensus/Resolution
> 
> * Symbols are a new primitive type with regular wrapper objects
> * typeof symbol === "symbol"
> * implicit conversion to string throws
> * new Symbol throws
> * Symbols are public, not private - ok that they leak to Proxy
> * Symbols are unique
> * Only exposed via Object.getOwnPropertySymbols instead of
>   Object.getOwnPropertyKeys
> * |Object.mixin| copies both symbol and string properties


-- 
Dr. Axel Rauschmayer
axel at rauschma.de

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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140117/7934ae99/attachment.html>


More information about the es-discuss mailing list