3 ms·
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" :)
by elgenie 10y ago
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" :)
- TazeTSchnitzel 10y agoThere'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.
- deleted 10y ago[deleted]
- coldtea 10y agoWell, Hack was in turn based on PHP, so?
- nkozyra 10y agoSome 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).
- agumonkey 10y agopython, 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.
- untog 10y agoWhat's wrong with that? Hack was based on PHP, no? It's like CoffeeScript and JavaScript - lots of the incredibly useful features in CoffeeScript found their way into ES6.