> -----Original Message----- > From: Dan Ackroyd [mailto:dan...@basereality.com] > Sent: Wednesday, March 11, 2015 8:04 PM > To: Zeev Suraski > Cc: PHP internals > Subject: Re: [PHP-DEV] [VOTE][RFC] Coercive Scalar Type Hints > > On 11 March 2015 at 16:45, Zeev Suraski <z...@zend.com> wrote: > > I think that going through a transition period ... that ultimately > > results in one, consistent language behavior > > This RFC is explicitly saying that there is stuff that will be need to be > changed > in the future. Why would anyone upgrade from PHP 5.6 to PHP > 70 when there are going to be more changes to the type system?
Because of the huge performance gain? And the many features? And the ability to gradually prepare for future versions softly, like virtually all of our deprecated functionality lifecycle works? > This is clearly worse than the strict STH RFC; with that people can write > code > that will work on 5.x, 7 and 7.x by just not using scalar type hints. That's exactly the same here too. Code that works on 7 will work on 5 - 7 will be more restrictive than 5, but not vice versa, so anything that works on 7, works fine on 5. And you get the benefit of weeding out issues and make your code better for both versions by checking it on 7. Zeev -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php