Re: [STANDARDS] Integer operations are implementation-defined
[email protected] (Andrea Faulds)
| Newsgroups | php.standards |
|---|---|
| Message-ID | <[email protected]> |
On 3 Sep 2014, at 07:26, Stas Malyshev <[email protected]> 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/