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
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to