Date: Sun, 5 Nov 2023 17:56:59 +0300
On 11/5/23 15:56, Yexuan Xiao via Std-Proposals wrote:
> Facilities like printf were meaningless after prinf was added to the
> standard, but since printf is widely used, deprecateing them is harmful
> to C++. new is vital to C++, we need its placement version, and
> deprecateing it harms C++'s ability. NULL, rand, qsort that should not
> continue to be used, but they should not be removed either.
A feature is either usable (as in, there's nothing wrong with the code
that uses it) or not (as in, the code that uses it needs to be
modified). The latter are marked with [[deprecated]]. Note that the
attribute itself does not imply that the feature will be removed, nor
the time frame of such removal, should it actually happen. That's what
the message argument is for.
BTW, the fact that there is an alternative tool does not necessarily
make the original one irrelevant. Thus puts is not meaningless because
of printf, I use both from time to time. NULL is irreplaceable for
compatibility with C.
> Facilities like printf were meaningless after prinf was added to the
> standard, but since printf is widely used, deprecateing them is harmful
> to C++. new is vital to C++, we need its placement version, and
> deprecateing it harms C++'s ability. NULL, rand, qsort that should not
> continue to be used, but they should not be removed either.
A feature is either usable (as in, there's nothing wrong with the code
that uses it) or not (as in, the code that uses it needs to be
modified). The latter are marked with [[deprecated]]. Note that the
attribute itself does not imply that the feature will be removed, nor
the time frame of such removal, should it actually happen. That's what
the message argument is for.
BTW, the fact that there is an alternative tool does not necessarily
make the original one irrelevant. Thus puts is not meaningless because
of printf, I use both from time to time. NULL is irreplaceable for
compatibility with C.
Received on 2023-11-05 14:57:03