Brendan Eich wrote:
Use +'' if you want ToString in the language, I say.

asm.js points the way on other explicit conversion forms:

ToString(x) is x+''
ToNumber(x) is +x
ToInt32(x) is ~~x
ToBoolean(x) is !!x

/be
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to