Hi Walter, On Thu, Apr 30, 2015 at 3:54 PM, Walter Parker <walt...@gmail.com> wrote:
> You didn't answer the question: why should we care? Is there enough of > user base now to care? IOT might be able to run PHP, but how many actually > do? And of the ones that do, is automatically half fixing the code that bad > programmers might write for the last remaining 32 bit platforms a good use > of our time? > > I don't suppose anyone objects view that IoT will be a big market in near future. The main problem is not only code IoT developers write, but libraries used by them. If you know embedded devices, they care every single dollar costs. I don't see any reason that they use 64 bit CPUs while 32 bit CPU is enough. We may say using PHP and it's library is not safe, so don't use it. I just don't like to say or anyone else say this. > I don't see the numeric type as fixing any of these problems... > Which is easier to advocate? - Use "string" type hints for record ID/etc and validate value by yourself. - Use "numeric" type hints for record ID/etc. or even - Use _weak_ mode "int" type hints (If it's relaxed) Regards, -- Yasuo Ohgaki yohg...@ohgaki.net