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

On Jan 17, 2014, at 18:09 , Brendan Eich <[email protected]> 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
[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