Automatically giving symbols descriptions

2016-01-06 Thread Axel Rauschmayer
I love how ES6 automatically gives anonymous function definitions names (via the variables they are assigned to etc.). Wouldn’t the same make sense for symbols? Hypothetical example: ```js const foo = Symbol(); console.log(Symbol('foo').toString()); // Symbol(foo) ``` -- Dr. Axel Rauschmayer

Re: Automatically giving symbols descriptions

2016-01-06 Thread Mark S. Miller
Yup. Consider const foo = x(); where x happens to have the original value of Symbol. Or const foo = Symbol() where Symbol is not bound to the original value of Symbol. On Wed, Jan 6, 2016 at 4:44 PM, Jordan Harband wrote: > One difference is that functions are syntax