Why does Symbol.for and Symbol.keyFor are limited to strings?
# Allen Wirfs-Brock (10 years ago)
On Jan 2, 2015, at 9:18 AM, Michał Wadas wrote:
What is reason behind restricting entries in global symbol registry to be indexed only by strings?
What are the use cases for anything other strings?
# Gary Guo (10 years ago)
Why not? Symbol's [[Description]] internal slot is string
What is reason behind restricting entries in global symbol registry to be indexed only by strings?