C++ Logo

std-proposals

Advanced search

Re: [std-proposals] The Oxford variadic comma

From: Christof Meerwald <cmeerw_at_[hidden]>
Date: Wed, 28 Feb 2024 15:44:16 +0100
On Wed, Feb 28, 2024 at 01:16:56PM +0100, Jan Schultke via Std-Proposals wrote:
> I have drafted another C++ proposal:
>
> https://eisenwave.github.io/cpp-proposals/oxford-variadic-comma.html
>
> Please share your thoughts :)

You say

  "This proposal seeks to deprecate ellipsis parameters without a
   preceding comma."

so that would deprecate both of these:

  void f(int ...);
  void g(int p ...);

But in the wording section you now have:

  "Declarators where this ambiguity arises and the ellipsis is parsed
  as part of the parameter-declaration-clause are deprecated."

This would only deprecate the first example, but not the second one,
as there is no ambiguity in the second case.

I believe you want to say

  "A parameter-declaration-clause of the form
   parameter-declaration-list ... is deprecated."

And you'll also want to add an Annex D entry.


Christof

-- 
https://cmeerw.org                             sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org                   xmpp:cmeerw at cmeerw.org

Received on 2024-02-28 14:44:19