Re: Integer operations are implementation-defined
| From: | Andrea Faulds | Date: | Wed, 03 Sep 2014 12:57:11 +0000 |
| Subject: | Re: Integer operations are implementation-defined | ||
| References: | 1 2 3 4 | Groups: | php.standards |
| Request: | Send a blank email to standards-+get-421@lists.php.net to get a copy of this message | ||
On 3 Sep 2014, at 07:26, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
> Hi!
>
>> The pull request is still here:
>> https://github.com/php/php-langspec/pull/36
>>
>> Can this be merged? Should it? Will it?
>
> I've merged the req, but I have one question - why it bans arbitrary
> precision ints?
To repeat what I just said on GitHub:
> Because they don't fit well together with the rest of the language, and code right now
> almost certainly assumes integers are fixed-size. To implement arbitrary-precision ints, something
> I'm trying to do, you need to change the rest of the language, and they'd break
> assumptions code currently makes.
Basically, I don’t think they’d work well with how integers are dealt with generally in the
language as it stands, and I suspect it would break existing code.
--
Andrea Faulds
http://ajf.me/