C++ Logo


Advanced search

Re: New attribute for experimental features

From: Matthew Woehlke <mwoehlke.floss_at_[hidden]>
Date: Fri, 12 Mar 2021 08:05:24 -0500
On 11/03/2021 17.55, codusnocturnus via Std-Proposals wrote:
> On Thu, Mar 11, 2021 at 3:14 PM, Carlos ORyan wrote:
>> I would like to propose an attribute [[experimental(msg)]], with
>> similar semantics to [[deprecated(msg)]].
> Why not just a generic compiler diagnostic message mechanism?
> [[diagnostic(level, msg)]]
> Where level in { info, warn, error }
> Relieve the compiler of the need to care about the reason.

...because from [[experimental(msg)]] naturally follows
-W[no-]experimental. There would be no way to control a diagnostic such
as you propose, except perhaps with a very blunt instrument.


Received on 2021-03-12 07:05:25