C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Keeping C++ Young: Migrating to Modern C++

From: Jonathan Wakely <cxx_at_[hidden]>
Date: Mon, 6 Nov 2023 00:19:45 +0000
On Sun, 5 Nov 2023, 15:31 Yexuan Xiao via Std-Proposals, <
std-proposals_at_[hidden]> wrote:

> Jonathan Wakely gives a different take on deprecated: Normative for the
> current revision of C++, but having been identified as a
> candidate for removal from future revisions.
> https://lists.isocpp.org/std-proposals/2023/09/7625.php
>

That's not my take, it's what the standard says.

And it doesn't contradict "the
attribute itself does not imply that the feature will be removed, nor
the time frame of such removal, should it actually happen."




> ------------------------------
> *From:* Std-Proposals <std-proposals-bounces_at_[hidden]> on behalf
> of Andrey Semashev via Std-Proposals <std-proposals_at_[hidden]>
> *Sent:* Sunday, November 5, 2023 22:56
> *To:* std-proposals_at_[hidden] <std-proposals_at_[hidden]>
> *Cc:* Andrey Semashev <andrey.semashev_at_[hidden]>
> *Subject:* Re: [std-proposals] Keeping C++ Young: Migrating to Modern C++
>
> 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.
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
>
> https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isocpp.org%2Fmailman%2Flistinfo.cgi%2Fstd-proposals&data=05%7C01%7C%7Cb801bff3adfa4dce966f08dbde0f7cfb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638347930349076249%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=i5M9yKUJFpX4f5%2FL9qEpacjMVFq%2FKLjs6pSAEiS63ts%3D&reserved=0
> <https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>

Received on 2023-11-06 00:20:01