C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Allow comma at the end of a list of objects in a declaration or definition

From: Bo Persson <bo_at_[hidden]>
Date: Sun, 7 May 2023 21:55:31 +0200
On 2023-05-07 at 19:35, Frederick Virchanza Gotham via Std-Proposals wrote:
> On Sun, May 7, 2023 at 6:33 PM Bo Persson via Std-Proposals
> <std-proposals_at_[hidden]> wrote:
>
>> I propose that we ban commas altogether, and make you write each
>> declaration as its own line. Then the diff will show exactly the line
>> that was added:
>>
>> std::jthread listener;
>> std::jthread sender;
>> std::jthread monitor;
>> +std::jthread socket;
>
>
> As I mentioned in a previous post, if you then change them all from
> 'jthread' to 'thread', you have to edit all four lines.

Yes, one character each.

And you prefer that we change the compilers, so you can save some typing?

Received on 2023-05-07 19:55:42