C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Parameters with default values at arbitrary positions, with empty arguments

From: David Brown <david.brown_at_[hidden]>
Date: Fri, 27 Nov 2026 14:31:45 +0100
On 27/11/2026 14:12, Simon Schröder wrote:
>
> On Fri, Nov 27, 2026 at 1:57 PM David Brown via Std-Proposals <std-
> proposals_at_[hidden] <mailto:std-proposals_at_[hidden]>> wrote:
>
>
> For C, you could just have
>
> #define default
>
> and then include the "default" for clarity and portability. That would
> not force the use of "default", but it would at least allow it.
>
>
> C still has 'switch'. So, you shouldn't be doing that...

Good point!

I guess the obvious answer in C is to use _Default instead :-)

Received on 2026-11-27 13:31:50