C++ Logo

sg16

Advanced search

Re: [SG16] P2071 - Named universal character escapes

From: Steve Downey <sdowney_at_[hidden]>
Date: Wed, 22 Sep 2021 11:56:17 -0400
On Wed, Sep 22, 2021 at 11:37 AM Corentin Jabot <corentinjabot_at_[hidden]>
wrote:

>
>
> On Wed, Sep 22, 2021 at 5:24 PM Tom Honermann <tom_at_[hidden]> wrote:
>
>> On 9/22/21 2:03 AM, Jens Maurer wrote:
>>
>> On 22/09/2021 03.41, Steve Downey via SG16 wrote:
>>
>> In view of the acceptance of p2290 delimited escape sequences, I think allowing named universal escapes everywhere UCNs are now might make more sense than restricting them to just in literals?
>>
>> Agreed.
>>
>> Likewise. I think we should just make them an alternate spelling of
>> *universal-character-name*.
>>
> It would certainly be the simpler option.
> FYI in clang this is twice the work because there are two code paths, but
> it's not a huge amount of work either.
> I would not expect that capability to be used by anyone though.
>

I think I'd rather see \U{GREEK CAPITAL LETTER OMEGA} than \u03A9 as an
identifier. Ω is best, but for less common codepoints, I can see how there
would be display issues. ⍰ = 1.0 is probably not good programmer UI.

Received on 2021-09-22 10:57:47