Date: Fri, 16 May 2025 14:31:21 +0200
Quite simple answer from my point of view.
Any basic types conversions should be explicit and otherwise erroneous.
I’ve worked on code bases where it is nearly impossible to catch errors of conversions because everything is so “nicely” converted automatically.
Multiplication of uint and int is so common that I’m surprised if it is NOT the default behavior for a new project (of course different sizes of ints as well).
Cheers, Filip
> Wiadomość napisana przez Jan Schultke via Std-Proposals <std-proposals_at_[hidden]> w dniu 16 maj 2025, o godz. 14:20:
>
>
> Hi,
>
> https://isocpp.org/files/papers/P3695R0.html will be in the next mailing.
>
> It seems like people almost universally dislike this implicit conversion, and overall, deprecation has been received very positively. However, I'd still be interested in your thoughts on this.
>
> Furthermore, is anyone interested in helping me get some data on the blast radius of this deprecation? It's not so easy to mine this. Also, it would be nice if you had some experience regarding how this deprecation would impact your code base, if at all.
>
> Note that Corentin has implemented a Clang warning for this: https://compiler-explorer.com/z/MjdYM9nrY although the warning is more conservative than the proposed deprecation.
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
Any basic types conversions should be explicit and otherwise erroneous.
I’ve worked on code bases where it is nearly impossible to catch errors of conversions because everything is so “nicely” converted automatically.
Multiplication of uint and int is so common that I’m surprised if it is NOT the default behavior for a new project (of course different sizes of ints as well).
Cheers, Filip
> Wiadomość napisana przez Jan Schultke via Std-Proposals <std-proposals_at_[hidden]> w dniu 16 maj 2025, o godz. 14:20:
>
>
> Hi,
>
> https://isocpp.org/files/papers/P3695R0.html will be in the next mailing.
>
> It seems like people almost universally dislike this implicit conversion, and overall, deprecation has been received very positively. However, I'd still be interested in your thoughts on this.
>
> Furthermore, is anyone interested in helping me get some data on the blast radius of this deprecation? It's not so easy to mine this. Also, it would be nice if you had some experience regarding how this deprecation would impact your code base, if at all.
>
> Note that Corentin has implemented a Clang warning for this: https://compiler-explorer.com/z/MjdYM9nrY although the warning is more conservative than the proposed deprecation.
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
Received on 2025-05-16 12:31:34