Implicit coercion of Symbols

Brendan Eich brendan at mozilla.org
Sat Jan 3 14:56:29 PST 2015


Rick Waldron wrote:
> Subjectively: I think it's nice in theory, but bad in practice.

Compared to what? Converting a symbol to asilent-but-deadly string?

I thought you were gonna raise the other way to restore consistency: 
make String(sym) throw too. Then we'd need a new Reflect op to get a 
string from a symbol.

/be


More information about the es-discuss mailing list