Why ES6 introduced classes yet `Symbol` not to be used with `new`?

/#!/JoePea joe at trusktr.io
Sun Aug 14 22:31:27 UTC 2016


It seems like `new Symbol()` would be inline with the introduction of
classes. Why was it chosen not to be constructible? Seems like it would
make sense to throw an error on `Symbol()` but not `new Symbol()`. Was it
to save three characters of typing?

*/#!/*JoePea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160814/fe1708e1/attachment.html>


More information about the es-discuss mailing list