Rick Waldron (2013-10-18T14:21:22.000Z)
On Fri, Oct 18, 2013 at 8:46 AM, Mathias Bynens <mathias at qiwi.be> wrote:

> ES6 fixes `String.fromCharCode` by introducing `String.fromCodePoint`.
>
> Similarly, `String.prototype.charCodeAt` is fixed by
> `String.prototype.codePointAt`.
>
> Should there be a method that is like `String.prototype.charAt` except it
> deals with astral Unicode symbols wherever possible?
>
>     >> '𝌆'.charAt(0) // U+1D306
>     '\uD834' // the first surrogate half for U+1D306
>
>     >> '𝌆'.symbolAt(0) // U+1D306
>     '𝌆' // U+1D306
>

I think the idea is good, but the name may be confusing with regard to
Symbols (maybe not?)

Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131018/195eccae/attachment.html>
domenic at domenicdenicola.com (2013-10-24T14:17:34.025Z)
I think the idea is good, but the name may be confusing with regard to Symbols (maybe not?)