> -----Original Message----- > From: Lester Caine [mailto:les...@lsces.co.uk] > Sent: Thursday, February 19, 2015 12:24 PM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] Reviving scalar type hints > > On 19/02/15 09:13, Zeev Suraski wrote: > > Obviously, I think 'weak' campers have a lot to gain too - by making > > sensible conversions work fine as expected, without having to resort > > to explicit casts. > > And everyone stands to gain from having just one mode, instead of two. > > The coercive typing approach would require each camp to give up a bit > > of their 'ideology', but it also gives both schools of thought *most* > > of what they want, including the key tenets for each camp (rejecting > > non-sensible conversions - always, allowing sensible ones - always). > > I believe that's what makes it a good compromise, a better one than > > the currently proposed RFC. > > Now that all made sense! > > My only grey area is 'allowing sensible ones' where the size is an > integral part > of what is 'sensible' ... the one where conventional strict typing uses a > type > of the right size?
I think the guiding principal for these conversions should be no data loss. This may mean we have different limits on different architectures, depending on whether they're 32-bit or 64-bit. Zeev -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php