On Jan 17, 2015 7:22 PM, "Andrea Faulds" <a...@ajf.me> wrote: > > Hey Pierre, > > > On 17 Jan 2015, at 05:56, Pierre Joye <pierre....@gmail.com> wrote: > > > > It looks to me like yet another can of worms (how do you deal with > > conversions, mixed operations, etc. it adds a lot of special cases) > > with little benefits. > > The conversions are trivial and there are no operations to implement. The only "support" added would be one more zend_parse_parameters option. > > > 32bit environments are dying species. There are > > ways to support LFS without that as well (while I doubt the effort is > > worth it). So if I'd to choose whether PHP should support unsigned > > integer, my gut feeling right now is no, it should not. > > This wouldn't be unsigned integer support though, it'd just be a conversion mechanism. > > Also, it has some use beyond 32-but systems. On 64-bit, it would be useful for, e.g. pack() and unpack().
I can indeed imagine some use cases for "optimized" math/ops in userland using unsigned integer (legacy or bigint). However I am not really convinced we should use them. Or if we do I would also like to have more (like c# f.e.) but it would b very tricky to use in php, due to its nature. > Thanks. > > -- > Andrea Faulds > http://ajf.me/