C++ Logo

std-discussion

Advanced search

Re: QOL: trailing comma in template arguments

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Tue, 26 Jan 2021 13:14:14 +0200
On Tue, 26 Jan 2021 at 12:57, Jefferson Carpenter via Std-Discussion
<std-discussion_at_[hidden]> wrote:
>
> On 1/26/2021 9:25 AM, Ville Voutilainen via Std-Discussion wrote:
>
>
> >
> > The usual feedback bit is to bring us a comprehensive package that
> > looks at all of the cases where
> > trailing commas should be allowed, not just a single tweak for one
> > case where there's a comma-separated list.
>
> It does seem to be not the most trivial change, since
> template-argument-list is non-empty so the parser can just parse a
> template-argument after the "<", and again after each ",".

Sure, it's technically doable. But then again, why? To get nicer
diffs? At the cost of
changing every C++ parser on the planet? That's a *terrible* trade-off.

Received on 2021-01-26 05:14:27