typeof symbol (Was: Sept 19 TC39 Meeting Notes)

Brendan Eich brendan at mozilla.org
Sat Sep 29 15:08:41 PDT 2012


Herby Vojčík wrote:
> Frozen empty object can be created, and technically it has same 
> properties, but it seems to me as an abuse of object. 

Not at all, JS always allowed a unique object to be made as a guaranteed 
sentinel. That was a feature, and of course typeof sentinel == "object".

I think this is too philosophical a discussion to result in a strong 
reason to risk "symbol". Just my gut-check. Other TC39ers should weigh 
in (Andreas R. especially).

/be


More information about the es-discuss mailing list