Rick Waldron (2015-01-03T01:08:27.000Z)
On Fri Jan 02 2015 at 7:53:22 PM Brendan Eich <brendan at mozilla.org> wrote:

> Caitlin Potter wrote:
> > One reason it might make sense to throw, is people converting values
> > to string names for use as object properties. Reason you'd want to
> > throw would be to prevent accidentally making the key useless
> > (different from its original Symbol value).
>
> This is exactly the reason.
>

Yep, I just wanted to make sure the subject got some last minute airtime to
make sure this is _really_ the way to go. I'll play the opposition here: is
the hazard as compelling now as it was when it was first discussed? Now
that implementors have had some time to work with Symbol, do proponents of
"throw" still feel strongly?


>
> Of course, having String(x) and '' + x diverge is funky, but not novel:
>

Sure, but the argument was re: the implicit coercion of built-ins.

Rick

>
> js> o = {valueOf(){return 42}, toString(){return 'haha'}}
> ({valueOf:function valueOf(){return 42}, toString:function
> toString(){return 'haha'}})
> js> String(o)
> "haha"
> js> ''+o
> "42"
>
> /be
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150103/5cd33a9f/attachment.html>
d at domenic.me (2015-01-12T17:52:18.652Z)
On Fri Jan 02 2015 at 7:53:22 PM Brendan Eich <brendan at mozilla.org> wrote:

> This is exactly the reason.

Yep, I just wanted to make sure the subject got some last minute airtime to
make sure this is _really_ the way to go. I'll play the opposition here: is
the hazard as compelling now as it was when it was first discussed? Now
that implementors have had some time to work with Symbol, do proponents of
"throw" still feel strongly?


> Of course, having String(x) and '' + x diverge is funky, but not novel:

Sure, but the argument was re: the implicit coercion of built-ins.