Date: Mon, 9 Dec 2024 23:49:45 -0600
Hi Rene, thanks. What's the threshold for "gratuitous"? There have
been some notable breaking deprecations / removals in the past, though
as mentioned certainly not as big as this would be.
The deprecation + removal approach for signed here would break code
under -Wsign-conversion -Werror but it wouldn't break anything else.
If this is too steep a change for C++ another option would be to add a
signed API leaving the unsigned API unchanged. This would address many
cases where signed and unsigned have to mix. An example this wouldn't
solve would be std::string::find returning a size_type.
Cheers,
Jeremy
On Mon, Dec 9, 2024 at 10:36 PM René Ferdinand Rivera Morell via
Std-Proposals <std-proposals_at_[hidden]> wrote:
>
> On Mon, Dec 9, 2024 at 10:02 PM Jeremy Rifkin via Std-Proposals <std-proposals_at_[hidden]> wrote:
>>
>> The other option would be a bigger plan to deprecate and remove
>> unsigned indexing APIs and replace them with signed APIs.
>
>
> That would violate rule 3.2 of SD-10.
>
> --
> -- René Ferdinand Rivera Morell
> -- Don't Assume Anything -- No Supongas Nada
> -- Robot Dreams - http://robot-dreams.net
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
been some notable breaking deprecations / removals in the past, though
as mentioned certainly not as big as this would be.
The deprecation + removal approach for signed here would break code
under -Wsign-conversion -Werror but it wouldn't break anything else.
If this is too steep a change for C++ another option would be to add a
signed API leaving the unsigned API unchanged. This would address many
cases where signed and unsigned have to mix. An example this wouldn't
solve would be std::string::find returning a size_type.
Cheers,
Jeremy
On Mon, Dec 9, 2024 at 10:36 PM René Ferdinand Rivera Morell via
Std-Proposals <std-proposals_at_[hidden]> wrote:
>
> On Mon, Dec 9, 2024 at 10:02 PM Jeremy Rifkin via Std-Proposals <std-proposals_at_[hidden]> wrote:
>>
>> The other option would be a bigger plan to deprecate and remove
>> unsigned indexing APIs and replace them with signed APIs.
>
>
> That would violate rule 3.2 of SD-10.
>
> --
> -- René Ferdinand Rivera Morell
> -- Don't Assume Anything -- No Supongas Nada
> -- Robot Dreams - http://robot-dreams.net
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
Received on 2024-12-10 05:49:58