On Thu, Jun 6, 2013 at 11:09 AM, Robert O'Callahan <rob...@ocallahan.org> wrote: > Immutable strings sound good to me. > > How hard would it be to add UTF-8 strings to Spidermonkey? JSString already > has a lot of "modes", perhaps one more wouldn't hurt :-). I'm imagining > that for anything that required UTF-16 (charAt etc) you'd convert the > string internals to UTF-16, and for passing into WebIDL we'd convert string > internals to UTF-8.
I asked this a while ago and Waldo said it would be very difficult, but I can't remember why. I've CC'd him... (and Terrence, who has been doing some string-related changes). Nick _______________________________________________ dev-servo mailing list dev-servo@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-servo