Domenic Denicola domenic at
Tue Aug 26 08:48:19 PDT 2014

Why would it be useful, from a programmer's perspective, to expose ToString directly? It is just a spec-internal thing, and the reason this change is made is because it is no longer very useful to directly expose that spec-internal thing given how it interacts with symbols.
From: es-discuss <es-discuss-bounces at> on behalf of Jeff Walden <jwalden+es at>
Sent: Tuesday, August 26, 2014 11:39
To: Allen Wirfs-Brock; Erik Arvidsson
Cc: es-discuss at
Subject: Re: String(symbol)

On 08/12/2014 11:07 PM, Allen Wirfs-Brock wrote:
> sounds good to me, I'll update the spec. accordingly
> On Aug 12, 2014, at 7:39 PM, Erik Arvidsson wrote:
>> I was suggesting that String(symbol) should not throw.
>> This can be spec'ed as String( value ) checking the Type of the value and special case it in case of the value being a symbol.

With this change, as far as I can tell there's no concise operation directly corresponding to the ToString abstract operation.  The best that seems possible is some horribly indirect operation like (v) =>{ name: v, message: "" }).  That seems undesirable to me.  I'm not convinced that having String deviate from ToString is a good thing.

es-discuss mailing list
es-discuss at

More information about the es-discuss mailing list