[RFC] Deprecate implicit non-integer-compatible float to int conversions

From: Date: Thu, 04 Mar 2021 13:07:25 +0000
Subject: [RFC] Deprecate implicit non-integer-compatible float to int conversions
Groups: php.internals 
Request: Send a blank email to internals+get-113371@lists.php.net to get a copy of this message
Hello internals,

This is a follow-up on the previous thread [1] about my RFC tackling
implicit float to int conversion.
It is now slightly larger in scope as it also pertains to what I call "non
compatible integer floating numbers".

This new version of the RFC can be found on the wiki: [2]
https://wiki.php.net/rfc/implicit-float-int-deprecate

Feedback is as usual welcomed, however I am not interested in changing the
behaviour of explicit casts.
One detail is if this RFC should also allow the usage of int compatible
float strings for string offsets, behaviour which has been removed in PHP
8.0 with the Saner Numeric Strings RFC. [3]

Best regards,

George P. Banyard

[1] "[RFC] Warning for implicit float to int conversions"
https://externals.io/message/113077
[2] https://wiki.php.net/rfc/implicit-float-int-deprecate
[3] https://wiki.php.net/rfc/saner-numeric-strings


Thread (4 messages)

« previous php.internals (#113371) next »