Re:Upcoming changes in PHP 7.1
by elgenie on Monday May 23, 2016 @07:27AM
(#11753135)
It's pretty amusing to read some of the PHP RFCs and see the verbal gymnastics taken to avoid saying "look, we're just taking this directly from Hack" :)
[ Parent
| on HN ]
Re:Upcoming changes in PHP 7.1
by TazeTSchnitzel on Monday May 23, 2016 @07:32AM
(#11753148)
There's certainly a lot of stuff inspired by Hack. If Hack did something well, sometimes PHP copies it. The syntax of all PHP 7's new type stuff is very close to Hack's.
Though the details may differ significantly. Hack and PHP's type systems are only superficially the same (AOT rather than runtime validation, disabling or ignoring type checks versus using "weak" type checks, type inference vs. no type inference, etc.), for example.
Well, Hack was in turn based on PHP, so?
Some of this could also be attributed to the fact that Hack also borrowed heavily. While I'm sure a lot of it came from playing with Hack and saying "wow, this should be how PHP7 does things," it might also be recognition from use in other languages (Java specifically).
python, php, es6 ... Lisp did all before. (waiting for the smalltalkers to pitch in).
In a less facetious spirit, it's interesting to see languages converge a lot. Darwinian gene dynamics.