W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2012

RE: New full Unicode for ES6 idea

From: Phillips, Addison <addison@lab126.com>
Date: Sun, 19 Feb 2012 17:18:41 -0800
To: Mark Davis ☕ <mark@macchiato.com>, Cameron McCormack <cam@mcc.id.au>
CC: Brendan Eich <brendan@mozilla.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>, Anne van Kesteren <annevk@opera.com>, "mranney@voxer.com" <mranney@voxer.com>, es-discuss <es-discuss@mozilla.org>
Message-ID: <131F80DEA635F044946897AFDA9AC3476AA7CEF81F@EX-SEA31-D.ant.amazon.com>
Mark wrote:

First, it would be great to get full Unicode support in JS. I know that's been a problem for us at Google.

AP> +1: I think we’ve waited for supplementary character support long enough!

Secondly, while I agree with Addison that the approach that Java took is workable, it does cause problems.

AP> The tension is between “compatibility” and “ease of use” here, I think. The question is whether very many scripts depend on the ‘uint16’ nature of a character in ES, use surrogates to effect supplementary character support, or are otherwise tied to the existing encoding model and are broken as a result of changes. In its ideal form, an ES string would logically be a sequence of Unicode characters (code points) and only the internal representation would worry about whatever character encoding scheme made the most sense (in many cases, this might actually be UTF-16).

AP> … but what I think is hard to deal with are different modes of processing scripts depending on “fullness of the Unicode inside”. Admittedly, the approach I favor is rather conservative and presents a number of challenges, most notably in adapting regex or for users who want to work strictly in terms of character values.

There are good reasons for why Java did what it did, basically for compatibility. But if there is some way that JS can work around those, that'd be great.

AP> Yes, it would.

~Addison

Received on Monday, 20 February 2012 01:19:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:05 UTC