C++ Logo


Advanced search

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

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Sun, 7 May 2023 18:35:37 +0100
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.

Received on 2023-05-07 17:35:45