Date: Fri, 15 Nov 2024 17:10:12 +0100
Hi Henry,
you probably would just want to suppress the actual direct use of the identifier, not indirect ones (e.g. within called functions), as those could be called with or without suppression.
If you then say
int y = f(g(h((x)));
and want to suppress the use of g only, then you could separate the expression to
auto a = h(x);
[suppress]
auto b = g(a);
int y = f(b);
Perhaps that works not everywhere, but it reduces the need for individual suppression.
OTOH it makes automatic tool use to insert the [suppress] more difficult, as it now has to separate the expressions.
-----Ursprüngliche Nachricht-----
Von:Henry Miller via Std-Proposals <std-proposals_at_[hidden]>
Gesendet:Fr 15.11.2024 16:16
Betreff:Re: [std-proposals] RFC: Ignorable deprecation
What I really want (but not enough to write the paper) is a suppress this one deprecated expression attribute and then a tool that run on my entire code base that will insert that for all existing uses of something that I just deprecated. Without both of them deprecated is useless because we can't deprecate anything we just delete unused things instead.
I don't think we need a to say what we are suppressing so long as we are confident that the suppression applies to one or a few things and so it is easy enough to figure out.
Received on 2024-11-15 16:11:18