On 20 February 2012 09:56, Andrew Oakley <[email protected]> wrote:

>
> While this is being discussed, for any new string handling I think we
> should make any invalid strings (according to the rules in Unicode)
> cause some kind of exception on creation.
>

Can you clarify which definition in the Unicode standard you are proposing
for "invalid string"?

> Most content actually only tries to access characters of a string like
this:
>
> for (var i = 0; i < str.length(); i++) {
>       str[i];
> }

Does anybody have any data on this?  I'm genuinely curious about how much
code "on the web" does any kind of character access on strings; the only
common use-case that comes to mind (other than wanting uint16[]) is users
who are doing UTF-16 on top of UCS-2.

Wes

-- 
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to