Re: [PHP-DEV] [RFC] Integer Semantics

[email protected] (Pierre Joye)
Newsgroups php.internals
Message-ID <CAEZPtU5d2ZM0AwZ1pd-HRHnkMpzNyrX8bAET_W-QbBkTN-DMUA@mail.gmail.com>
On Wed, Aug 20, 2014 at 11:24 AM, Andrea Faulds <[email protected]> wrote:
>
> On 20 Aug 2014, at 03:53, Laruence <[email protected]> wrote:
>
>> On Wed, Aug 20, 2014 at 6:36 AM, Andrea Faulds <[email protected]> wrote:
>>> Good evening,
>>>
>>> I have made an RFC which would make some small changes to how integers are handled, targeted at PHP 7:
>>>
>>> https://wiki.php.net/rfc/integer_semantics
>>
>> I'd like don't change the works behavior.  make it act the similar as C does.
>
> For some of these things the behaviour is explicitly undefined in C, meaning it’s dangerous for us not to handle them specially, as undefined behaviour seems to give compilers an unlimited license to do absolutely anything at all.
>
> The rest are “implementation-defined”. While what C does “works”, I’d rather we do one thing consistently instead of forcing developers to deal with the kinds of platform and compiler differences tools like PHP should be abstracting.

I totally agree with Andrea here. While it made sense to map C
behavior for years, for many of us, as we all came from a C backgroud.
However it makes less and less sense lately, if at all.

Cheers,
-- 
Pierre

@pierrejoye | http://www.libgd.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.