C++ Logo

sg16

Advanced search

Re: [SG16-Unicode] Feedback on P1097R1: U+NNNNNN syntax

From: Hubert Tong <hubert.reinterpretcast_at_[hidden]>
Date: Fri, 6 Jul 2018 17:37:31 -0400
On Fri, Jul 6, 2018 at 5:31 PM, Tom Honermann <tom_at_[hidden]> wrote:

> On 07/06/2018 05:16 PM, Hubert Tong wrote:
>
>> I am wondering if accepting U+(4-6 hex digits) in \N{...} as Perl does
>> can be considered.
>>
>
> It certainly can be, but what is the motivation given that we already have
> \u and \U? Why is supporting both \u1234 and \N{U+1234} helpful?
>
Do stylistic choices count? I happen to like naming Unicode characters as
U+NNNN.

There is also a possible semantic difference to explore between \u/\U and
\N{U+...}:
The \N form should certainly require that a character is assigned in
Unicode; however, I think assigning a more "raw" meaning to \u/\U could
make sense.


> Tom.
>

Received on 2018-07-06 23:37:53