Symbol is not a class.

From: es-discuss [mailto:[email protected]] On Behalf Of /#!/JoePea
Sent: Sunday, August 14, 2016 18:31
To: es-discuss <[email protected]>
Subject: Why ES6 introduced classes yet `Symbol` not to be used with `new`?

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

Reply via email to