C++ Logo

std-proposals

Advanced search

Re: [std-proposals] A new C++ keyword: forget

From: Jens Maurer <jens.maurer_at_[hidden]>
Date: Wed, 12 Aug 2026 08:31:31 +0200
On 8/12/26 04:33, Connor Song via Std-Proposals wrote:
> A keyword, or possibly a contextual keyword, seems more natural to me:
>
> |redact x; |
>
> or perhaps
>
> |redact(x); |
>
> where |redact| is explicitly part of the grammar.
>
> A contextual keyword might also address the source-compatibility concern that motivated avoiding a new keyword in the first place, without making a core-language construct look like a standard-library function.
The place where this needs to go is already quite crowded
syntax-wise, so I'm eager to see the disambiguation rules
for a contextual keyword.

Jens

Received on 2026-08-12 06:31:35