Re: [RFC] Unicode Escape Syntax
| From: | Andrea Faulds | Date: | Tue, 25 Nov 2014 11:09:02 +0000 |
| Subject: | Re: [RFC] Unicode Escape Syntax | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-79156@lists.php.net to get a copy of this message | ||
> On 25 Nov 2014, at 10:32, Derick Rethans <derick@php.net> wrote:
>
> On Mon, 24 Nov 2014, Sara Golemon wrote:
>
>> On the BMP versus SMP issue of \uXXXX styles, we addressed this in
>> PHP6 by making \u denote 4 hexit BMP codepoints, while \U denoted six
>> hexit codepoints. e.g. "\u1234" === "\U001234" I'd rather
>> follow this style than making \u special and different from hex and
>> octal notations by using braces.
>
> I agree with this fully. No need to reinvent a wheel (that we left
> behind on the road)…
The \u{} style has its advantages, like not being case-sensitive and being clearly delimited,
though. Plus, PHP 6 is dead, and non-BMP code points are more important than ever.
--
Andrea Faulds
http://ajf.me/