C++ Logo

SG16

Advanced search

Subject: Re: C++ Identifier Syntax using Unicode Standard Annex 31
From: Steve Downey (sdowney_at_[hidden])
Date: 2020-01-13 18:29:36


If I was writing grammar, I would have made a terrible mistake. Hopefully
in a laundry list of what things are identifiers it won't be too unclear.
Thanks!

On Mon, Jan 13, 2020, 19:12 Michael Spencer <bigcheesegs_at_[hidden]> wrote:

> On Sun, Jan 12, 2020 at 7:06 PM Steve Downey via SG16 <
> sg16_at_[hidden]> wrote:
>
>> Module names are, I believe, a superset of identifiers, where '.' is
>> allowed between the parts that correspond to the identifier fragment.
>>
>
> Module names are actually a dotted sequence of identifiers (they can have
> whitespace between the dots and the identifiers, and don't allow
> consecutive dots).
>
> - Michael Spencer
>
>
>>
>> I will add details. That header file names are not identifiers is an
>> interesting compatibility issue.
>>
>> As currently proposed, I am restricting syntax elements to the basic
>> source character set. That might make sense for headers (not header files),
>> but expressing that constraint might be complicated. I doubt anyone will
>> insist on a header with characters outside the basic set soon.
>>
>> On Sun, Jan 12, 2020, 21:39 Alisdair Meredith <alisdairm_at_[hidden]> wrote:
>>
>>> Minor suggestion: call out where identifiers are used
>>> (class/variable/function names etc.) and a couple of examples where they
>>> are not (header names, raw string prefix/suffix, etc.). In particular -
>>> would this apply to module names?
>>>
>>> AlisdairM
>>>
>>> Sent from my iPhone
>>>
>>> On Jan 13, 2020, at 1:36 AM, Steve Downey via SG16 <
>>> sg16_at_[hidden]> wrote:
>>>
>>> 
>>> Current draft of "C++ Identifier Syntax using Unicode Standard Annex 31"
>>> https://github.com/steve-downey/papers/blob/master/D1949R1.md
>>> <https://slack-redir.net/link?url=https%3A%2F%2Fgithub.com%2Fsteve-downey%2Fpapers%2Fblob%2Fmaster%2FD1949R1.md>
>>> Final format will by html, produced by MPark's wg21 tool. Expanded
>>> discussion of everything, added explicit character lists, added authors,
>>> per last telecon.
>>> --
>>> SG16 mailing list
>>> SG16_at_[hidden]
>>> https://lists.isocpp.org/mailman/listinfo.cgi/sg16
>>>
>>> --
>> SG16 mailing list
>> SG16_at_[hidden]
>> https://lists.isocpp.org/mailman/listinfo.cgi/sg16
>>
>



SG16 list run by sg16-owner@lists.isocpp.org