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

Re: New full Unicode for ES6 idea

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 20 Feb 2012 18:20:07 +0100
To: "Brendan Eich" <brendan@mozilla.com>, "Allen Wirfs-Brock" <allen@wirfs-brock.com>
Cc: "Gavin Barraclough" <barraclough@apple.com>, public-script-coord@w3.org, mranney@voxer.com, "es-discuss discussion" <es-discuss@mozilla.org>
Message-ID: <op.v9zmftkq64w2qv@annevk-macbookpro.local>
On Mon, 20 Feb 2012 18:15:31 +0100, Allen Wirfs-Brock  
<allen@wirfs-brock.com> wrote:
> On Feb 20, 2012, at 4:19 AM, Wes Garland wrote:
>> I think so, too -- especially as any sequence of Unicode code points --  
>> including invalid and reserved code points -- constitutes a valid  
>> Unicode string, according to my recollection of the Unicode  
>> specification.
>
> For the moment, I'll simply take Wes' word for the above, as it  
> logically makes sense.  For some uses, you want to process all possible  
> code points (for example, when validating data from an external  
> source).  At this lowest level you don't want to impose higher level  
> Unicode semantic constraints:
>
>        if (stringFromElseWhere.indexOf("\u{d800}")) ....

It's wrong though. UTF-8 cannot express surrogate code points for instance.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Monday, 20 February 2012 17:20:50 UTC

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